[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[samba.git] / source / tests / shared_mmap.c
index fb8a2a32d5f325bd6b19f1989cd03cce1e0df91f..fcef75d0d615918ca6c1caf987c17924809ce02b 100644 (file)
@@ -1,7 +1,9 @@
 /* this tests whether we can use a shared writeable mmap on a file -
    as needed for the mmap varient of FAST_SHARE_MODES */
 
+#if defined(HAVE_UNISTD_H)
 #include <unistd.h>
+#endif
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -16,7 +18,7 @@
 main()
 {
        int *buf;
-       int i, pid;
+       int i
        int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666);
        int count=7;