This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Refer to <signal.h> instead of <pthread.h> in <bits/sigthread.h>
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Tue, 28 Feb 2017 10:35:01 +0100
- Subject: [PATCH] Refer to <signal.h> instead of <pthread.h> in <bits/sigthread.h>
- Authentication-results: sourceware.org; auth=none
The <bits/sigthread.h> header is included by <signal.h>, not
<pthread.h>. Installed as obvious.
* bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
* sysdeps/pthread/bits/sigthread.h: Likewise.
diff --git a/bits/sigthread.h b/bits/sigthread.h
index 1cb14a811c..29e578d514 100644
--- a/bits/sigthread.h
+++ b/bits/sigthread.h
@@ -20,7 +20,7 @@
#define _BITS_SIGTHREAD_H 1
#if !defined _SIGNAL_H && !defined _PTHREAD_H
-# error "Never include this file directly. Use <pthread.h> instead"
+# error "Never include this file directly. Use <signal.h> instead"
#endif
/* Modify the signal mask for the calling thread. The arguments have the
diff --git a/sysdeps/pthread/bits/sigthread.h b/sysdeps/pthread/bits/sigthread.h
index 30a3af0177..4302ee41e8 100644
--- a/sysdeps/pthread/bits/sigthread.h
+++ b/sysdeps/pthread/bits/sigthread.h
@@ -20,7 +20,7 @@
#define _BITS_SIGTHREAD_H 1
#if !defined _SIGNAL_H && !defined _PTHREAD_H
-# error "Never include this file directly. Use <pthread.h> instead"
+# error "Never include this file directly. Use <signal.h> instead"
#endif
/* Functions for handling signals. */
--
2.12.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."