* fix HAVE_SYSCALL_H detection
authorWilfried Göesgens <willi@citadel.org>
Sun, 20 Jun 2010 21:44:14 +0000 (21:44 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 20 Jun 2010 21:44:14 +0000 (21:44 +0000)
citadel/threads.c

index 2f7475ff12129741d78f582b71e1ea5a1a5e19f2..14d00d7bd593bf3522a3314cfda17d52fd6205b6 100644 (file)
@@ -18,6 +18,7 @@
 #include <fcntl.h>
 #include <signal.h>
 
+#include "sysdep.h"
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # include <time.h>
 #  include <time.h>
 # endif
 #endif
+
 #ifdef HAVE_SYSCALL_H
-#include <syscall.h> 
-#else if HAVE_SYS_SYSCALL_H
-#include <sys/syscall.h>
+# include <syscall.h>
+#else 
+# if HAVE_SYS_SYSCALL_H
+#  include <sys/syscall.h>
+# endif
 #endif
+
 #include <libcitadel.h>
 
 #include "threads.h"