Author: mturk
Date: Thu Apr 28 17:24:33 2011
New Revision: 1097557
URL: http://svn.apache.org/viewvc?rev=1097557&view=rev
Log:
Define MAP_ANONYMOUS if not
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/unix/posixapi.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/posixapi.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/posixapi.c?rev=1097557&r1=1097556&r2=1097557&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/posixapi.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/posixapi.c Thu Apr 28
17:24:33 2011
@@ -20,6 +20,9 @@
#include "arch_opts.h"
#include <sys/mman.h>
+#if !defined(MAP_ANONYMOUS)
+# define MAP_ANONYMOUS MAP_ANON
+#endif
ACR_UNX_EXPORT(jint, Posix, open)(JNI_STDARGS, jstring name,
jint flags, jint mode)