]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
linux/sysipc: Include linux/posix_types.h for __kernel_mode_t
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 6 Mar 2020 12:25:32 +0000 (09:25 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 6 Mar 2020 12:53:23 +0000 (09:53 -0300)
The posix_types.h (where __kernel_mode_t is defined) is included
implicitly, which might not happen on older kernels.

sysdeps/unix/sysv/linux/msgctl.c
sysdeps/unix/sysv/linux/semctl.c
sysdeps/unix/sysv/linux/shmctl.c

index eb28835b3a1f880154e1b815c1cf66a00bc3c22b..fd46aec1a0172a342833c10667a1121a575a2a68 100644 (file)
@@ -21,6 +21,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
index 0a79e8e4f536d8b2e2bad367015405e2156db947..30571af49ff91bfe18b70049ff930295ec10aef3 100644 (file)
@@ -22,6 +22,7 @@
 #include <sysdep.h>
 #include <shlib-compat.h>
 #include <errno.h>
+#include <linux/posix_types.h>  /* For __kernel_mode_t.  */
 
 /* Define a `union semun' suitable for Linux here.  */
 union semun
index aed9e5260eb8bd588daa85132e4b2214a1039424..f41b359b8b0323256b3a4f662d5fe28cf7c8beab 100644 (file)
@@ -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