diff mbox

Refer to <signal.h> instead of <pthread.h> in <bits/sigthread.h>

Message ID 87o9xm64l6.fsf@linux-m68k.org
State Committed
Commit b31737bdf94a1d9eb4108d10c4d38241b6fe788b
Headers show

Commit Message

Andreas Schwab Feb. 28, 2017, 9:35 a.m. UTC
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 mbox

Patch

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. */