summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/profiles.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 20b1222e72..a31674dfb2 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -614,6 +614,7 @@ int main(int argc, char *argv[])
base = mmap(&start, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
#else
base = (char *)-1;
+ errno = ENOSYS;
#endif
if ((int)base == -1) {