diff options
Diffstat (limited to 'mit-pthreads/pthreads/init.cc')
-rw-r--r-- | mit-pthreads/pthreads/init.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mit-pthreads/pthreads/init.cc b/mit-pthreads/pthreads/init.cc new file mode 100644 index 00000000000..24a131a60a5 --- /dev/null +++ b/mit-pthreads/pthreads/init.cc @@ -0,0 +1,9 @@ + +/* + * DO not delete this file. The hack here ensures that pthread_init() gets + * called before main does. This doesn't fix everything. It is still + * possible for a c++ module to reley on constructors that need pthreads. + */ +#include <pthread.h> + +char __pthread_init_hack = 42; |