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

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/apps/konsole/src
From:       Benjamin Reed <ranger () befunk ! com>
Date:       2010-03-05 17:55:00
Message-ID: 1267811700.165270.3201.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1099510 by reed:

test for sys/proc_info.h and sys/proc.h

proc_info.h was introduced in OSX 10.5
10.4 (and perhaps earlier, although untested)
contained the necessary defines in sys/proc.h.


 M  +4 -0      CMakeLists.txt  
 M  +5 -0      ProcessInfo.cpp  
 M  +4 -0      config-konsole.h.cmake  


--- branches/KDE/4.4/kdebase/apps/konsole/src/CMakeLists.txt #1099509:1099510
@@ -4,6 +4,10 @@
 macro_bool_to_01(X11_Xrender_FOUND HAVE_XRENDER)
 macro_log_feature(XKB_FOUND "XKB" "X keyboard extension" "http://www.x.org" FALSE "" "Gives Konsole \
better keyboard support.")  
+include(CheckIncludeFiles)
+check_include_files("sys/proc.h"      HAVE_SYS_PROC_H)
+check_include_files("sys/proc_info.h" HAVE_SYS_PROC_INFO_H)
+
 configure_file (config-konsole.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-konsole.h )
 
 ### Tests
--- branches/KDE/4.4/kdebase/apps/konsole/src/ProcessInfo.cpp #1099509:1099510
@@ -19,6 +19,7 @@
 
 // Own
 #include "ProcessInfo.h"
+#include "config-konsole.h"
 
 // Unix
 #include <sys/socket.h>
@@ -42,8 +43,12 @@
 
 #if defined(Q_OS_MAC)
 #include <sys/sysctl.h>
+#ifdef HAVE_SYS_PROC_INFO_H
 #include <sys/proc_info.h>
+#endif
+#ifdef HAVE_SYS_PROC_H
 #include <sys/proc.h>
+#endif
 #include <kde_file.h>
 #endif
 
--- branches/KDE/4.4/kdebase/apps/konsole/src/config-konsole.h.cmake #1099509:1099510
@@ -7,4 +7,8 @@
 /* Defined if your system has XRender support */
 #cmakedefine HAVE_XRENDER 1
 
+/* Defined if you have sys/proc.h */
+#cmakedefine HAVE_SYS_PROC_H 1
 
+/* Defined if you have sys/proc_info.h */
+#cmakedefine HAVE_SYS_PROC_INFO_H 1


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

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