Permalink
Browse files

Fix build errors on Linux.

  • Loading branch information...
1 parent 50d9011 commit 114e2ccc2e39a09c63d56f098f0153f9b7622db8 @Sarcasm Sarcasm committed Mar 20, 2013
@@ -89,7 +89,7 @@ if(BUILD_EXAMPLES)
endif()
else()
set_target_properties( glfw PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/External/glfw/libX11/libglfw.a )
- set(GLFW_LIBRARIES glfw X11)
+ set(GLFW_LIBRARIES glfw X11 pthread)
endif()
endif()
@@ -29,7 +29,7 @@ typedef pthread_mutex_t CRITICAL_SECTION;
void InitializeCriticalSection( CRITICAL_SECTION* pCrit )
{
- *pCrit = PTHREAD_MUTEX_INITIALIZER;
+ pthread_mutex_init(pCrit, NULL);
}
void DeleteCriticalSection( CRITICAL_SECTION* pCrit )

0 comments on commit 114e2cc

Please sign in to comment.