trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r884818 - in /incubator/trafficserver/traffic/trunk: configure.ac proxy/logging/LogConfig.cc
Date Fri, 27 Nov 2009 10:16:26 GMT
Author: pquerna
Date: Fri Nov 27 10:16:25 2009
New Revision: 884818

URL: http://svn.apache.org/viewvc?rev=884818&view=rev
Log:
TS-2: look for statfs related headers, rather than specific operating systems.

Modified:
    incubator/trafficserver/traffic/trunk/configure.ac
    incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc

Modified: incubator/trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/configure.ac?rev=884818&r1=884817&r2=884818&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/configure.ac (original)
+++ incubator/trafficserver/traffic/trunk/configure.ac Fri Nov 27 10:16:25 2009
@@ -505,6 +505,8 @@
                   alloca.h \
                   cpio.h \
                   stropts.h \
+                  sys/mount.h \
+                  sys/param.h \
                   ], [], [])
 
 sinclude(build-aux/apr_common.m4)

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc?rev=884818&r1=884817&r2=884818&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc Fri Nov 27 10:16:25 2009
@@ -32,12 +32,12 @@
 #include <stdio.h>
 #include <string.h>
 
-// TODO move these checks to ink_platform.h
-#if (HOST_OS == freebsd)
-#include <machine/types.h>
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
+#endif
+#ifdef HAVE_SYS_MOUNT_H
 #include <sys/mount.h>
-#endif  // freebsd
+#endif
 
 #include <dirent.h>
 



Mime
View raw message