commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r810902 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c
Date Thu, 03 Sep 2009 11:55:25 GMT
Author: mturk
Date: Thu Sep  3 11:55:24 2009
New Revision: 810902

URL: http://svn.apache.org/viewvc?rev=810902&view=rev
Log:
conditionaly include sys/mman.h. However it always there for the platforms we use

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c?rev=810902&r1=810901&r2=810902&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c Thu Sep  3 11:55:24 2009
@@ -31,8 +31,9 @@
 #include "acr_file.h"
 #include "acr_mmap.h"
 
+#if HAVE_SYS_MMAN_H
 #include <sys/mman.h>
-
+#endif
 #if defined(_LARGEFILE64_SOURCE) && HAVE_MMAP64
 #define mmap(a, l, p, f, d, o) mmap64(a, l, p, f, d, o)
 #endif



Mime
View raw message