[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream
From:       Stephan Kulow <coolo () kde ! org>
Date:       2007-04-25 18:19:20
Message-ID: 1177525160.182006.8297.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 658022 by coolo:

hopefully easier for new BSDs :)


 M  +1 -1      configure.in  
 M  +6 -4      daemon/load.cpp  


--- trunk/icecream/configure.in #658021:658022
@@ -33,7 +33,7 @@
 
 # Some of these are needed by popt (or other libraries included in the future).
 
-AC_CHECK_HEADERS([unistd.h stdint.h sys/types.h sys/signal.h ifaddrs.h])
+AC_CHECK_HEADERS([unistd.h stdint.h sys/types.h sys/signal.h ifaddrs.h kinfo.h sys/param.h devstat.h])
 AC_CHECK_HEADERS([ctype.h sys/resource.h sys/socket.h sys/stat.h sys/select.h sys/vfs.h])
 AC_CHECK_HEADERS([netinet/in.h], [], [],
 [#if HAVE_SYS_TYPES_H
--- trunk/icecream/daemon/load.cpp #658021:658022
@@ -24,15 +24,17 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 
-#if defined( __FreeBSD__ ) || defined( MACOS ) || defined(__DragonFly__)
+#if !defined( __linux__ )
 #define USE_SYSCTL
 #endif
-#if defined(__DragonFly__)
-#include <sys/param.h>
+#ifdef HAVE_KFINO_H
 #include <kinfo.h>
 #endif
-#ifdef USE_SYSCTL
+#ifdef HAVE_DEVSTAT_H
 #include <sys/resource.h>
 #include <sys/sysctl.h>
 #include <devstat.h>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic