This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Add missing include for pthread_setcancelstate
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Date: Wed, 2 Aug 2017 23:07:58 +0200
- Subject: [PATCH] Add missing include for pthread_setcancelstate
- Authentication-results: sourceware.org; auth=none
* sysdeps/posix/shm_open.c: Include <pthread.h>.
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>