When <sys/user.h> is included, it MUST be included first because it sets
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 29 Apr 2007 01:10:33 +0000 (01:10 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 29 Apr 2007 01:10:33 +0000 (01:10 +0000)
a preprocessor variable that effects other header files.

lib/libc_r/uthread/uthread_init.c
lib/libc_r/uthread/uthread_jmp.c

index 93545d6..517bae6 100644 (file)
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc_r/uthread/uthread_init.c,v 1.23.2.11 2003/02/24 23:27:32 das Exp $
- * $DragonFly: src/lib/libc_r/uthread/uthread_init.c,v 1.9 2005/05/11 19:47:00 dillon Exp $
+ * $DragonFly: src/lib/libc_r/uthread/uthread_init.c,v 1.10 2007/04/29 01:10:33 dillon Exp $
  */
 
 /* Allocate space for global thread variables here: */
 #define GLOBAL_PTHREAD_PRIVATE
 
+#include <sys/user.h>  /* MUST BE FIRST */
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
@@ -48,7 +49,6 @@
 #include <sys/time.h>
 #include <sys/ttycom.h>
 #include <sys/param.h>
-#include <sys/user.h>
 #include <sys/mman.h>
 #include <machine/reg.h>
 #include <pthread.h>
index 56bb0a4..2c5222a 100644 (file)
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc_r/uthread/uthread_jmp.c,v 1.2.2.4 2002/10/22 14:44:03 fjoe Exp $
- * $DragonFly: src/lib/libc_r/uthread/uthread_jmp.c,v 1.2 2003/06/17 04:26:48 dillon Exp $
+ * $DragonFly: src/lib/libc_r/uthread/uthread_jmp.c,v 1.3 2007/04/29 01:10:33 dillon Exp $
  */
 
+#include <sys/user.h>  /* MUST BE FIRST */
 #include <unistd.h>
 #include <setjmp.h>
 #include <sys/param.h>
-#include <sys/user.h>
 #include <machine/reg.h>
 #include <pthread.h>
 #include "pthread_private.h"