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 2011/04/18 15:38:46 UTC

svn commit: r1094568 - in /commons/sandbox/runtime/trunk/src/main/native: configure os/bsdx/os.c

Author: mturk
Date: Mon Apr 18 13:38:46 2011
New Revision: 1094568

URL: http://svn.apache.org/viewvc?rev=1094568&view=rev
Log:
Fix bsd port

Modified:
    commons/sandbox/runtime/trunk/src/main/native/configure
    commons/sandbox/runtime/trunk/src/main/native/os/bsdx/os.c

Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=1094568&r1=1094567&r2=1094568&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Mon Apr 18 13:38:46 2011
@@ -551,8 +551,7 @@ case "$host-$cctype" in
         test ".$java_platform_inc" = . && java_platform_inc=linux
         ;;
     *bsd-gcc  )
-        varadds cppopts -D_BSD_SOURCE
-        varadds cppopts -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED
+        varadds cppopts -D_BSD_SOURCE -D_BSD_VISIBLE
         varadds ccflags -O3 -Wall
         varadds ccshare -fPIC
         if [ ".$mach" = .i386 ]; then

Modified: commons/sandbox/runtime/trunk/src/main/native/os/bsdx/os.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/bsdx/os.c?rev=1094568&r1=1094567&r2=1094568&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/bsdx/os.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/bsdx/os.c Mon Apr 18 13:38:46 2011
@@ -28,7 +28,7 @@ static const char     _unknown[] = "unkn
 ACR_JNI_EXPORT(jint, Os, getType)(JNI_STDARGS)
 {
     UNREFERENCED_STDARGS;
-    return ACR_OS_BSDX;
+    return ACR_OS_BSD;
 }
 
 ACR_JNI_EXPORT(jint, Os, getNumCpu)(JNI_STDARGS)