1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Expose all MAP_ constants in <sys/mman.h> unconditionally (bug 29375)

POSIX reserves the MAP_ prefix for <sys/mman.h>, so there is no need to
conditionalize their definitions on feature test macros.
This commit is contained in:
Andreas Schwab
2022-08-16 15:18:11 +02:00
parent 589eda82bb
commit 954b8f3895
10 changed files with 90 additions and 124 deletions

View File

@ -24,9 +24,7 @@
But the kernel header is not namespace clean. */
/* Other flags. */
#ifdef __USE_MISC
# define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */
#endif
#define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */
#include <bits/mman-map-flags-generic.h>