summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-20 18:21:25 +0200
committerGünther Deschner <gd@samba.org>2011-04-20 19:16:47 +0200
commit0b89ce671250daddc86400ef4e1996c37c126025 (patch)
tree46a52b21c21a68c324f44704ae0ff8669b24e414
parentae61a5c3d05192457f5a0b24dd9bd34317df566f (diff)
downloadsamba-0b89ce671250daddc86400ef4e1996c37c126025.tar.gz
s3-build: move MAP_FILE define to the only place used.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 20 19:16:47 CEST 2011 on sn-devel-104
-rw-r--r--source3/include/includes.h4
-rw-r--r--source3/modules/vfs_aio_fork.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 1dac73a168e..a76942faad5 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -580,10 +580,6 @@ enum flush_reason_enum {
#define SIGRTMIN NSIG
#endif
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
-
#if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
#define OSF1_ENH_SEC 1
#endif
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index 881bc51eb23..41b5a89dd29 100644
--- a/source3/modules/vfs_aio_fork.c
+++ b/source3/modules/vfs_aio_fork.c
@@ -24,6 +24,10 @@
#include "system/shmem.h"
#include "smbd/smbd.h"
+#ifndef MAP_FILE
+#define MAP_FILE 0
+#endif
+
struct mmap_area {
size_t size;
volatile void *ptr;