commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r819580 - in /commons/sandbox/runtime/trunk/src/main/native: configure include/arch/linux/acr_arch_private.h include/arch/solaris/acr_arch_private.h
Date Mon, 28 Sep 2009 15:16:52 GMT
Author: mturk
Date: Mon Sep 28 15:16:52 2009
New Revision: 819580

URL: http://svn.apache.org/viewvc?rev=819580&view=rev
Log:
Check for Solaris 10 port_create

Modified:
    commons/sandbox/runtime/trunk/src/main/native/configure
    commons/sandbox/runtime/trunk/src/main/native/include/arch/linux/acr_arch_private.h
    commons/sandbox/runtime/trunk/src/main/native/include/arch/solaris/acr_arch_private.h

Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=819580&r1=819579&r2=819580&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Mon Sep 28 15:16:52 2009
@@ -901,6 +901,15 @@
     have_selinux=0
 fi
 
+if [ ".$host" = ".solaris" ]; then
+    have_port=`have_include port`
+    if [ ".$have_port" = .1 ]; then
+        have_port=`have_function port_create`
+    fi
+else
+    have_port=0
+fi
+
 if [ ".$has_openssl" = .yes ]; then
     test ".$openssl_inc" != . && varadds includes "-I$openssl_inc"
     if [ ".$host" = .windows ]; then
@@ -939,6 +948,7 @@
 #define HAVE_OPENSSL          $have_openssl
 #define HAVE_OCSP             $have_ocsp
 #define HAVE_SELINUX_H        $have_selinux
+#define HAVE_PORT_H           $have_port
 
 #define HAVE_UNISTD_H         `have_include unistd`
 #define HAVE_STRING_H         `have_include string`

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/linux/acr_arch_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/linux/acr_arch_private.h?rev=819580&r1=819579&r2=819580&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/linux/acr_arch_private.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/linux/acr_arch_private.h Mon
Sep 28 15:16:52 2009
@@ -22,6 +22,7 @@
 #include <sys/stat.h>
 #include <sys/utsname.h>
 #include <fnmatch.h>
+#include <sys/epoll.h>
 #include <poll.h>
 
 #ifdef __cplusplus

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/solaris/acr_arch_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/solaris/acr_arch_private.h?rev=819580&r1=819579&r2=819580&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/solaris/acr_arch_private.h
(original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/solaris/acr_arch_private.h
Mon Sep 28 15:16:52 2009
@@ -21,7 +21,10 @@
  */
 #include <sys/stat.h>
 #include <sys/systeminfo.h>
-#include <poll.h>
+#include <sys/poll.h>
+#if ACR_HAVE_PORT_H
+#include <port.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {



Mime
View raw message