diff mbox

Add missing include for pthread_setcancelstate

Message ID 20170802210758.xa44eghauymoco2o@var.youpi.perso.aquilenet.fr
State New
Headers show

Commit Message

Samuel Thibault Aug. 2, 2017, 9:07 p.m. UTC
* sysdeps/posix/shm_open.c: Include <pthread.h>.

Comments

Joseph Myers Aug. 2, 2017, 10:27 p.m. UTC | #1
On Wed, 2 Aug 2017, Samuel Thibault wrote:

> * sysdeps/posix/shm_open.c: Include <pthread.h>.

Note that this (adding such missing includes) counts as obvious and does 
not need review.

https://sourceware.org/glibc/wiki/Consensus#Trivial_Bug-Fix_Changes
Samuel Thibault Aug. 2, 2017, 10:31 p.m. UTC | #2
Joseph Myers, on mer. 02 août 2017 22:27:13 +0000, wrote:
> On Wed, 2 Aug 2017, Samuel Thibault wrote:
> 
> > * sysdeps/posix/shm_open.c: Include <pthread.h>.
> 
> Note that this (adding such missing includes) counts as obvious and does 
> not need review.
> 
> https://sourceware.org/glibc/wiki/Consensus#Trivial_Bug-Fix_Changes

Right. I thought perhaps including pthread.h in particular could have
consequences, but normally there aren't indeed.

Samuel
diff mbox

Patch

diff --git a/sysdeps/posix/shm_open.c b/sysdeps/posix/shm_open.c
index 64315de8f8..eeb6cb5589 100644
--- a/sysdeps/posix/shm_open.c
+++ b/sysdeps/posix/shm_open.c
@@ -25,6 +25,7 @@ 
 #else
 
 # include <fcntl.h>
+# include <pthread.h>
 # include <shm-directory.h>