Fixed check for include of pthread.h
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Apr 2008 10:56:21 +0000 (12:56 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Apr 2008 10:56:21 +0000 (12:56 +0200)
util/tstlockscope.c

index 6836461..bf28f22 100644 (file)
@@ -25,11 +25,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 #include <yaz/log.h>
 #include <yaz/test.h>
-#if YAZ_POSIX_THREADS
 #include <fcntl.h>
+#if YAZ_POSIX_THREADS
+#include <pthread.h>
 #endif
 
 int fd;