You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/03 13:55:25 UTC
svn commit: r810902 -
/commons/sandbox/runtime/trunk/src/main/native/os/unix/mmap.c
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