From ddb71188cf7562c80ab38544b9588e66f924130e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 14 Oct 2003 03:38:24 +0000 Subject: Set errno = ENOSYS if mmap not supported. From Joachim Schmitz (This used to be commit 22655a65ab73576557487e73c550b45296e534ec) --- source3/utils/profiles.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/utils') 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) { -- cgit