Permalink
Browse files

Merge pull request #22 from Sarcasm/master

Fix build errors on Linux
  • Loading branch information...
2 parents 50d9011 + 114e2cc commit 1810e6bb1adf254b2c2447a5a7e8431a7a82ab07 @dougbinks dougbinks committed Mar 21, 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 1810e6b

Please sign in to comment.