CHECK_SYMBOL_EXISTS fails to find PTHREAD_MUTEX_RECURSIVE on FreeBSD
The build of 8.0.1 fails on the FreeBSD due to this line:
CHECK_SYMBOL_EXISTS(PTHREAD_MUTEX_RECURSIVE pthread.h HAVE_PTHREAD_MUTEX_RECURSIVE_DEFN)
The cmake test error:
/usr/ports/math/vtk/tmp/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:18: error: cannot take the address of an rvalue of type 'int'
return ((int*)(&PTHREAD_MUTEX_RECURSIVE))[argc];
^~~~~~~~~~~~~~~~~~~~~~~~
This symbol (enum) actually exists.