]> andersk Git - openssh.git/blobdiff - openbsd-compat/xmmap.c
- dtucker@cvs.openbsd.org 2008/06/13 01:38:23
[openssh.git] / openbsd-compat / xmmap.c
index 78ef46b2fa291025dba91d6b5b029ad8810ab962..322ffc2b17f6d9c2eec19a17d80468d67ba3083a 100644 (file)
 #endif
 #include <sys/stat.h>
 
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
 #include <errno.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 
 #include "log.h"
 
-void *xmmap(size_t size)
+void *
+xmmap(size_t size)
 {
+#ifdef HAVE_MMAP
        void *address;
 
-#ifdef HAVE_MMAP
 # ifdef MAP_ANON
        address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
            -1, (off_t)0);
This page took 0.039306 seconds and 4 git commands to generate.