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