commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1096458 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/posixapi.c
Date Mon, 25 Apr 2011 11:10:55 GMT
Author: mturk
Date: Mon Apr 25 11:10:55 2011
New Revision: 1096458

URL: http://svn.apache.org/viewvc?rev=1096458&view=rev
Log:
MAP_EXECUATABLE is usually unused

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=1096458&r1=1096457&r2=1096458&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 Mon Apr 25 11:10:55 2011
@@ -188,8 +188,10 @@ ACR_UNX_EXPORT(jlong, Posix,  mmap)(JNI_
         mflags |= MAP_PRIVATE;
     if (flags & 0x04)
         mflags |= MAP_ANONYMOUS;
+#if defined(MAP_EXECUTABLE)
     if (flags & 0x08)
         mflags |= MAP_EXECUTABLE;
+#endif
 
     base = mmap(J2V(addr), (size_t)size, mmprot, mflags, fd, offset);
     if (base == MAP_FAILED) {



Mime
View raw message