about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/shmctl.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-03-06 09:25:32 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-03-06 09:53:23 -0300
commit60f071f47af51bdbfecf7e2d611555f7376cab03 (patch)
tree4b60b0323089fd9e508b36f45d4e5cc68aa209ca /sysdeps/unix/sysv/linux/shmctl.c
parent87a698a21646b7ee620923ef5ffa9735471a8ddd (diff)
downloadglibc-60f071f47af51bdbfecf7e2d611555f7376cab03.tar.gz
glibc-60f071f47af51bdbfecf7e2d611555f7376cab03.tar.xz
glibc-60f071f47af51bdbfecf7e2d611555f7376cab03.zip
linux/sysipc: Include linux/posix_types.h for __kernel_mode_t
The posix_types.h (where __kernel_mode_t is defined) is included
implicitly, which might not happen on older kernels.
Diffstat (limited to 'sysdeps/unix/sysv/linux/shmctl.c')
-rw-r--r--sysdeps/unix/sysv/linux/shmctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/shmctl.c b/sysdeps/unix/sysv/linux/shmctl.c
index aed9e5260e..f41b359b8b 100644
--- a/sysdeps/unix/sysv/linux/shmctl.c
+++ b/sysdeps/unix/sysv/linux/shmctl.c
@@ -22,6 +22,7 @@
 #include <sysdep.h>
 #include <shlib-compat.h>
 #include <errno.h>
+#include <linux/posix_types.h>  /* For __kernel_mode_t.  */
 
 #ifndef DEFAULT_VERSION
 # ifndef __ASSUME_SYSVIPC_BROKEN_MODE_T