trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r884797 - in /incubator/trafficserver/traffic/trunk: configure.ac libinktomi++/ink_platform.h libinktomi++/ink_port.h libinktomi++/inktomi++.h
Date Fri, 27 Nov 2009 09:36:26 GMT
Author: pquerna
Date: Fri Nov 27 09:36:25 2009
New Revision: 884797

URL: http://svn.apache.org/viewvc?rev=884797&view=rev
Log:
TS-2: Remove more host based checks, converting them to look for specific headers or features

Modified:
    incubator/trafficserver/traffic/trunk/configure.ac
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_platform.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_port.h
    incubator/trafficserver/traffic/trunk/libinktomi++/inktomi++.h

Modified: incubator/trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/configure.ac?rev=884797&r1=884796&r2=884797&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/configure.ac (original)
+++ incubator/trafficserver/traffic/trunk/configure.ac Fri Nov 27 09:36:25 2009
@@ -498,6 +498,13 @@
                   ctype.h \
                   siginfo.h \
                   malloc.h \
+                  wait.h \
+                  float.h \
+                  libgen.h \
+                  values.h \
+                  alloca.h \
+                  cpio.h \
+                  stropts.h \
                   ], [], [])
 
 sinclude(build-aux/apr_common.m4)

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_platform.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_platform.h?rev=884797&r1=884796&r2=884797&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_platform.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_platform.h Fri Nov 27 09:36:25
2009
@@ -68,7 +68,7 @@
 #include <siginfo.h>
 #endif
 
-#if (HOST_OS != freebsd)
+#ifdef HAVE_WAIT_H
 #include <wait.h>
 #endif
 
@@ -84,22 +84,24 @@
 #endif
 
 
-#if (HOST_OS != freebsd)
+#ifdef HAVE_VALUES_H
 #include <values.h>
+#endif
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
 #endif
 
 #include <errno.h>
 #include <dirent.h>
 
-#if (HOST_OS != linux) && (HOST_OS != freebsd)
+#ifdef HAVE_CPIO_H
 #include <cpio.h>
 #endif
 
 struct ifafilt;
 #include <net/if.h>
 
-#if (HOST_OS != linux) && (HOST_OS != freebsd)
+#ifdef HAVE_STROPTS_H
 #include <stropts.h>
 #endif
 
@@ -138,10 +140,6 @@
 
 #include <netinet/ip_icmp.h>
 
-#if (HOST_OS != linux) && (HOST_OS != freebsd)
-#undef __P
-#endif
-
 #include <resolv.h>
 
 

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_port.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_port.h?rev=884797&r1=884796&r2=884797&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_port.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_port.h Fri Nov 27 09:36:25 2009
@@ -60,7 +60,7 @@
 #define _CRTIMP
 #define HAVE_64_BIT
 
-#if (HOST_OS == linux) || (HOST_OS == freebsd)
+#if (HOST_OS == linux) || (HOST_OS == freebsd) || (HOST_OS == darwin)
 #define POSIX_THREAD
 #define POSIX_THREAD_10031c
 #else

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/inktomi++.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/inktomi%2B%2B.h?rev=884797&r1=884796&r2=884797&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/inktomi++.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/inktomi++.h Fri Nov 27 09:36:25 2009
@@ -56,9 +56,10 @@
 #include <strings.h>
 #include <unistd.h>
 #include <stdarg.h>
-#if (HOST_OS == freebsd)
+#ifdef HAVE_FLOAT_H
 #include <float.h>
-#else
+#endif
+#ifdef HAVE_LIBGEN_H
 #include <libgen.h>
 #endif
 #include <limits.h>



Mime
View raw message