summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-10-14 03:38:24 +0000
committerTim Potter <tpot@samba.org>2003-10-14 03:38:24 +0000
commitddb71188cf7562c80ab38544b9588e66f924130e (patch)
tree5f58bad56e8ea95442095aedbd0e2687b7287a11 /source3
parent48980f72ccfed7c255a87e361167e6f5cecf10cf (diff)
downloadsamba-ddb71188cf7562c80ab38544b9588e66f924130e.tar.gz
samba-ddb71188cf7562c80ab38544b9588e66f924130e.tar.bz2
samba-ddb71188cf7562c80ab38544b9588e66f924130e.zip
Set errno = ENOSYS if mmap not supported.
From Joachim Schmitz <schmitz@hp.com> (This used to be commit 22655a65ab73576557487e73c550b45296e534ec)
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) {