pthread: missing HAVE_PTHREAD_H check
authorMarko Kreen <[email protected]>
Fri, 4 Jan 2013 22:53:20 +0000 (00:53 +0200)
committerMarko Kreen <[email protected]>
Fri, 4 Jan 2013 22:53:20 +0000 (00:53 +0200)
usual/pthread.c

index ca1cb75d305577b167b18afca8d197e82828e5ee..c0e6ff8fb5d34ca44b1063b243e1f1e5db624b05 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <usual/pthread.h>
 
+#ifndef HAVE_PTHREAD_H
 #ifdef WIN32
 /*
  * basic pthreads for win32.
@@ -90,4 +91,4 @@ int pthread_mutex_unlock(pthread_mutex_t *lock)
 }
 
 #endif /* win32 */
-
+#endif /* !HAVE_PTHREAD_H */