Linux: include kthread.h before afs includes
[openafs.git] / src / afs / afs_call.c
index aebc567..31ea253 100644 (file)
@@ -10,6 +10,9 @@
 #include <afsconfig.h>
 #include "afs/param.h"
 
+#if defined(HAVE_LINUX_KTHREAD_RUN) && !defined(UKERNEL)
+#  include "h/kthread.h"
+#endif
 
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 #include "afsincludes.h"       /* Afs-based standard headers */
@@ -25,9 +28,6 @@
 #   include "netinet/in_var.h"
 #  endif
 # endif
-# ifdef HAVE_LINUX_KTHREAD_RUN
-#  include "h/kthread.h"
-# endif
 #endif /* !defined(UKERNEL) */
 #ifdef AFS_SUN510_ENV
 #include "h/ksynch.h"