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 eb28835..fd46aec 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 0a79e8e..30571af 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 aed9e52..f41b359 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