Move #undef ENABLE_PTHREAD_SUPPORT lower in appl/gssmask/common.h
authorRoland C. Dowdeswell <elric@imrryr.org>
Thu, 7 Jun 2012 15:57:51 +0000 (16:57 +0100)
committerRoland C. Dowdeswell <elric@imrryr.org>
Thu, 7 Jun 2012 15:57:51 +0000 (16:57 +0100)
This wasn't having the intended effect because after we #include
config.h and #undef ENABLE_PTHREAD_SUPPORT we then #include other
headers that also #include config.h.  I've moved this lower so that
it has the effect that appears to be intended but the correct answer
may be to make it work but this will require #including pthread.h
as the build fails with -Werror when pthread functions are called.

appl/gssmask/common.h

index cd9b0817f55d39f27efb9bc1c6d5554901b87b3a..96d10ff0a4463a941b9f4df7167159407f14e229 100644 (file)
 #include <config.h>
 #endif
 
-/*
- * pthread support is disable because the pthread
- * test have no "application pthread libflags" variable,
- * when this is fixed pthread support can be enabled again.
- */
-#undef ENABLE_PTHREAD_SUPPORT
-
 #include <sys/param.h>
 #ifdef HAVE_SYS_UTSNAME_H
 #include <sys/utsname.h>
 
 #include "protocol.h"
 
+/*
+ * pthread support is disable because the pthread
+ * test have no "application pthread libflags" variable,
+ * when this is fixed pthread support can be enabled again.
+ */
+#undef ENABLE_PTHREAD_SUPPORT
+
 krb5_error_code store_string(krb5_storage *, const char *);