This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
A patch for linuxthreads
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: A patch for linuxthreads
- From: hjl@lucon.org (H.J. Lu)
- Date: Sat, 24 Oct 1998 18:18:33 -0700 (PDT)
- Cc: libc-hacker@cygnus.com (GNU C Library)
We should not include them indiscriminately.
--
H.J. Lu (hjl@gnu.org)
---
Sat Oct 24 18:15:53 1998 H.J. Lu <hjl@gnu.org>
* linuxthreads/sysdeps/pthread/bits/pthreadtypes.h: Protect
with __USE_REENTRANT, __USE_MISC, __USE_GNU and _PTHREAD_H.
* linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h:
Likewise.
Index: linuxthreads/sysdeps/pthread/bits/pthreadtypes.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pthreadtypes.h
--- pthreadtypes.h 1998/07/01 02:47:57 1.1.1.1
+++ pthreadtypes.h 1998/10/22 14:22:52
@@ -19,6 +19,9 @@
#ifndef _BITS_PTHREADTYPES_H
#define _BITS_PTHREADTYPES_H 1
+#if defined __USE_REENTRANT || defined __USE_MISC || \
+ defined __USE_GNU || defined _PTHREAD_H
+
#define __need_schedparam
#include <bits/sched.h>
@@ -115,5 +118,7 @@
/* Thread identifiers */
typedef unsigned long int pthread_t;
+
+#endif
#endif /* bits/pthreadtypes.h */
Index: linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 sigthread.h
--- sigthread.h 1998/09/14 16:08:53 1.1.1.3
+++ sigthread.h 1998/10/22 14:23:06
@@ -24,6 +24,9 @@
# error "Never include this file directly. Use <pthread.h> instead"
#endif
+#if defined __USE_REENTRANT || defined __USE_MISC || \
+ defined __USE_GNU || defined _PTHREAD_H
+
/* Functions for handling signals. */
/* Modify the signal mask for the calling thread. The arguments have
@@ -33,5 +36,7 @@
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+
+#endif
#endif /* bits/sigthread.h */