From 0edd68cd36b3238e2773ba8a39456b312318e794 Mon Sep 17 00:00:00 2001 From: frohlich Date: Wed, 31 Jan 2007 20:44:44 +0000 Subject: [PATCH] Modified Files: src/Main/bootstrap.cxx: Olaf Flebbe: Appears to be requierd for static linkage and pthreadswin32. --- src/Main/bootstrap.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 37707ce47..f2018a678 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -51,6 +51,7 @@ SG_USING_STD(endl); #ifdef HAVE_WINDOWS_H # include # include +# include #endif #include "fg_os.hxx" @@ -148,6 +149,10 @@ int _bootstrap_OSInit; // Main entry point; catch any exceptions that have made it this far. int main ( int argc, char **argv ) { +#ifdef PTW32_STATIC_LIB + // Initialise static pthread win32 lib + pthread_win32_process_attach_np (); +#endif _bootstrap_OSInit = 0; #if defined(__linux__) && defined(__i386__)