]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/xmmap.c
Import of OpenSSH 4.4p1
[gssapi-openssh.git] / openssh / openbsd-compat / xmmap.c
index d85303132b97c18cfb6752a7ed9f51dec044d8c1..4239d0e964e5f9f658bfeed13db524061426389d 100644 (file)
 
 #include "includes.h"
 
+#include <sys/types.h>
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif
+#include <sys/stat.h>
+
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
+#include <errno.h>
+#include <stdarg.h>
+#include <string.h>
+#include <unistd.h>
 
 #include "log.h"
 
 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.284909 seconds and 4 git commands to generate.