Set errno = ENOSYS if mmap not supported.
authorTim Potter <tpot@samba.org>
Tue, 14 Oct 2003 03:38:24 +0000 (03:38 +0000)
committerTim Potter <tpot@samba.org>
Tue, 14 Oct 2003 03:38:24 +0000 (03:38 +0000)
From Joachim Schmitz <schmitz@hp.com>
(This used to be commit 22655a65ab73576557487e73c550b45296e534ec)

source3/utils/profiles.c

index 20b1222e72372102a2fb0577d3ff6fef66dd021a..a31674dfb2e2e80554a42cb7bcff35e8c98bd391 100644 (file)
@@ -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) {