Date: Wed, 5 Jan 2005 13:42:25 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 68316 for review Message-ID: <200501051342.j05DgPtP012044@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=68316 Change 68316 by davidxu@davidxu_tiger on 2005/01/05 13:42:24 Fix pthread.h inclusion, don't include it twice for most files. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_kern.c#12 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_list.c#2 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_printf.c#3 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#14 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_rtld.c#4 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sem.c#6 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_spinlock.c#6 edit .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_syscalls.c#3 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_kern.c#12 (text+ko) ==== @@ -30,6 +30,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <pthread.h> #include "thr_private.h" /*#define DEBUG_THREAD_KERN */ ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_list.c#2 (text+ko) ==== @@ -35,6 +35,7 @@ #include <stdlib.h> #include <string.h> +#include <pthread.h> #include "thr_private.h" #include "libc_private.h" ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_printf.c#3 (text+ko) ==== @@ -30,6 +30,7 @@ #include <stdarg.h> #include <string.h> #include <unistd.h> +#include <pthread.h> #include "thr_private.h" ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#14 (text+ko) ==== @@ -54,8 +54,6 @@ #include <ucontext.h> #include <sys/thr.h> #include <sys/umtx.h> -#include <pthread.h> -#include <pthread_np.h> #include "pthread_md.h" ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_rtld.c#4 (text+ko) ==== @@ -29,6 +29,7 @@ */ #include <sys/cdefs.h> #include <stdlib.h> +#include <pthread.h> #include "rtld_lock.h" #include "thr_private.h" ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sem.c#6 (text+ko) ==== @@ -39,7 +39,6 @@ #include <time.h> #include <_semaphore.h> #include "un-namespace.h" -#include "libc_private.h" #include "thr_private.h" ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_spinlock.c#6 (text+ko) ==== @@ -35,7 +35,7 @@ #include <sys/types.h> #include <machine/atomic.h> - +#include <pthread.h> #include <libc_private.h> #include "spinlock.h" #include "thr_private.h" ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_syscalls.c#3 (text+ko) ==== @@ -54,10 +54,6 @@ #include <string.h> #include <termios.h> #include <unistd.h> - -#include "namespace.h" -#include "un-namespace.h" - #include <pthread.h> #include "thr_private.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501051342.j05DgPtP012044>