Hi Jim, The OpenThreads CMakeLists.txt file has the line
CHECK_FUNCTION_EXISTS(pthread_setaffinity_np HAVE_PTHREAD_SETAFFINITY_NP) Which should only set this HAVE_PTHREAD_SETAFFINITY_NP variable to TRUE when pthread_setaffinity_np is available, so I'm confused why you need to hardwiring of disabling of this feature under FreeBSD. Could you please explain the build error you have and provide the pthread header on your system so we can review the source of the actual problem, as I believe the fix you have provided is hack around for a problem elsewhere. Robert. On Tue, Mar 23, 2010 at 2:57 AM, Jim Brooks <[email protected]> wrote: > [also posted to main OSG mailing list] > > Had compile errors on FreeBSD 8. > Fixed with these two lines: > > src/OpenThreads/pthreads/CMakLists.txt > > IF(HAVE_PTHREAD_SETAFFINITY_NP) >> IF(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD") #---fix--- > ADD_DEFINITIONS(-DHAVE_PTHREAD_SETAFFINITY_NP) >> ENDIF(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD") #---fix--- > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
