Add missing include for pthread_setcancelstate
Commit Message
* sysdeps/posix/shm_open.c: Include <pthread.h>.
Comments
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
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
@@ -25,6 +25,7 @@
#else
# include <fcntl.h>
+# include <pthread.h>
# include <shm-directory.h>