boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / include / gc_pthread_redirects.h
index b567f63e14f0efd1b6a140162df4e694369ce976..8925c852e7ac726f2e36c77ca3ba2a23f2fec12a 100644 (file)
 # include <pthread.h>
 # include <signal.h>
 
+# ifndef GC_DARWIN_THREADS
+#   include <dlfcn.h>
+# endif
+
   int GC_pthread_create(pthread_t *new_thread,
                         const pthread_attr_t *attr,
                        void *(*start_routine)(void *), void *arg);
 #ifndef GC_DARWIN_THREADS
-  int GC_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
+    int GC_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
+    void *GC_dlopen(const char *path, int mode);
 #endif
   int GC_pthread_join(pthread_t thread, void **retval);
   int GC_pthread_detach(pthread_t thread);
 #  undef pthread_sigmask
 # endif         /* pthread_sigmask */
 # define pthread_sigmask GC_pthread_sigmask
+# ifdef dlopen
+#  undef dlopen
+# endif
 # define dlopen GC_dlopen
 #endif
 
-#endif /* GC_xxxxx_THREADS */
+#endif /* GC_PTHREADS && !GC_USE_LD_WRAP */
 
 #endif /* GC_PTHREAD_REDIRECTS_H */