Using libc types and headers from the UAPI headers is problematic as it introduces a dependency on a full C toolchain. shm.h does not even use any symbols from the libc header as the usage of getpagesize() was removed a decade ago in commit 060028bac94b ("ipc/shm.c: increase the defaults for SHMALL, SHMMAX") Drop the unnecessary inclusion.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -5,9 +5,6 @@ · 4 unmodified lines | |||
| 5 | #include <linux/ipc.h> | 5 | #include <linux/ipc.h> |
| 6 | #include <linux/errno.h> | 6 | #include <linux/errno.h> |
| 7 | #include <asm-generic/hugetlb_encode.h> | 7 | #include <asm-generic/hugetlb_encode.h> |
| 8 | #ifndef __KERNEL__ | ||
| 9 | #include <unistd.h> | ||
| 10 | #endif | ||
| 11 | 8 | ||
| 12 | /* | 9 | /* |
| 13 | * SHMMNI, SHMMAX and SHMALL are default upper limits which can be | 10 | * SHMMNI, SHMMAX and SHMALL are default upper limits which can be |