Revision: 54960
http://brlcad.svn.sourceforge.net/brlcad/?rev=54960&view=rev
Author: brlcad
Date: 2013-03-29 05:22:50 +0000 (Fri, 29 Mar 2013)
Log Message:
-----------
need to check for a few headers to support thread affinity on bsd. check for
pthread_np.h and sys/cpuset.h headers along with the cpu_set_t type (which is
linux, bsd is cpuset_t but allegedly may switch to match).
Modified Paths:
--------------
brlcad/trunk/CMakeLists.txt
Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2013-03-29 04:56:56 UTC (rev 54959)
+++ brlcad/trunk/CMakeLists.txt 2013-03-29 05:22:50 UTC (rev 54960)
@@ -1404,7 +1404,6 @@
# The variable CMAKE_THREAD_LIBS_INIT is the one of interest
# when writing target_link_libraries lists.
find_package(Threads)
-BRLCAD_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
# Check for the C++ STL library - need to link it explicitly in
# some compilation situations
@@ -1535,6 +1534,8 @@
BRLCAD_INCLUDE_FILE(netdb.h HAVE_NETDB_H)
BRLCAD_INCLUDE_FILE(netinet/in.h HAVE_NETINET_IN_H)
BRLCAD_INCLUDE_FILE(poll.h HAVE_POLL_H)
+BRLCAD_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
+BRLCAD_INCLUDE_FILE(pthread_np.h HAVE_PTHREAD_NP_H)
BRLCAD_INCLUDE_FILE(pwd.h HAVE_PWD_H)
BRLCAD_INCLUDE_FILE(rle.h HAVE_RLE_H)
BRLCAD_INCLUDE_FILE(sched.h HAVE_SCHED_H)
@@ -1544,6 +1545,7 @@
BRLCAD_INCLUDE_FILE(string.h HAVE_STRING_H)
BRLCAD_INCLUDE_FILE(strings.h HAVE_STRINGS_H)
BRLCAD_INCLUDE_FILE(sys/_ioctl.h HAVE_SYS__IOCTL_H)
+BRLCAD_INCLUDE_FILE(sys/cpuset.h HAVE_SYS_CPUSET_H)
BRLCAD_INCLUDE_FILE(sys/file.h HAVE_SYS_FILE_H)
BRLCAD_INCLUDE_FILE(sys/ioctl.h HAVE_SYS_IOCTL_H)
BRLCAD_INCLUDE_FILE(sys/ioctl_compat.h HAVE_SYS_IOCTL_COMPAT_H)
@@ -1610,6 +1612,7 @@
if(NOT HAVE_SOCKLEN_T)
BRLCAD_TYPE_SIZE("socklen_t" "sys/socket.h")
endif(NOT HAVE_SOCKLEN_T)
+BRLCAD_TYPE_SIZE("cpu_set_t" "sched.h")
BRLCAD_TYPE_SIZE("int" "")
BRLCAD_TYPE_SIZE("long" "")
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits