summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-11-27 06:51:39 +0000
committerdas <das@FreeBSD.org>2004-11-27 06:51:39 +0000
commit130bed654798f5974ea1b814996c1b960dc03919 (patch)
treeee0da1ed6777c64e0cd28bc317983024127c0118 /lib
parent0b21c939c0a54cb34f0810d1353e74009ad7176a (diff)
downloadFreeBSD-src-130bed654798f5974ea1b814996c1b960dc03919.zip
FreeBSD-src-130bed654798f5974ea1b814996c1b960dc03919.tar.gz
Don't include sys/user.h merely for its side-effect of recursively
including other headers.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/pthread_private.h5
-rw-r--r--lib/libc_r/uthread/uthread_init.c1
-rw-r--r--lib/libc_r/uthread/uthread_jmp.c1
-rw-r--r--lib/libc_r/uthread/uthread_stack.c1
-rw-r--r--lib/libthr/thread/thr_init.c1
-rw-r--r--lib/libthr/thread/thr_private.h5
-rw-r--r--lib/libthr/thread/thr_stack.c1
7 files changed, 10 insertions, 5 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index f83e2f4..ecd330c 100644
--- a/lib/libc_r/uthread/pthread_private.h
+++ b/lib/libc_r/uthread/pthread_private.h
@@ -52,6 +52,7 @@
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
+#include <sys/param.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -60,6 +61,10 @@
#include <spinlock.h>
#include <ucontext.h>
#include <pthread_np.h>
+#include <vm/vm.h>
+#include <vm/vm_param.h>
+#include <vm/pmap.h>
+#include <vm/vm_map.h>
/*
* Define machine dependent macros to get and set the stack pointer
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c
index d3a2b45..fadc277 100644
--- a/lib/libc_r/uthread/uthread_init.c
+++ b/lib/libc_r/uthread/uthread_init.c
@@ -49,7 +49,6 @@
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/ttycom.h>
-#include <sys/user.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <dirent.h>
diff --git a/lib/libc_r/uthread/uthread_jmp.c b/lib/libc_r/uthread/uthread_jmp.c
index df9759f..5aa0001 100644
--- a/lib/libc_r/uthread/uthread_jmp.c
+++ b/lib/libc_r/uthread/uthread_jmp.c
@@ -34,7 +34,6 @@
#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"
diff --git a/lib/libc_r/uthread/uthread_stack.c b/lib/libc_r/uthread/uthread_stack.c
index 63fa4cd..b2f3f57 100644
--- a/lib/libc_r/uthread/uthread_stack.c
+++ b/lib/libc_r/uthread/uthread_stack.c
@@ -31,7 +31,6 @@
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/queue.h>
-#include <sys/user.h>
#include <stdlib.h>
#include <pthread.h>
#include "un-namespace.h"
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index 548474d..3291738 100644
--- a/lib/libthr/thread/thr_init.c
+++ b/lib/libthr/thread/thr_init.c
@@ -49,7 +49,6 @@
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/ttycom.h>
-#include <sys/user.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <dirent.h>
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index bda67ca..47183d7 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -54,6 +54,7 @@
#include <sys/errno.h>
#include <sys/msg.h>
#include <sys/time.h>
+#include <sys/param.h>
#include <sys/queue.h>
#include <pthread_np.h>
#include <sched.h>
@@ -69,6 +70,10 @@
#include <machine/atomic.h>
#include <sys/thr.h>
#include <sys/umtx.h>
+#include <vm/vm.h>
+#include <vm/vm_param.h>
+#include <vm/pmap.h>
+#include <vm/vm_map.h>
#if defined(_PTHREADS_INVARIANTS)
/*
diff --git a/lib/libthr/thread/thr_stack.c b/lib/libthr/thread/thr_stack.c
index b4063ad..2b6ba8e 100644
--- a/lib/libthr/thread/thr_stack.c
+++ b/lib/libthr/thread/thr_stack.c
@@ -30,7 +30,6 @@
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/queue.h>
-#include <sys/user.h>
#include <stdlib.h>
#include <pthread.h>
#include "thr_private.h"
OpenPOWER on IntegriCloud