Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions programs/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
# ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200809L /* feature test macro : https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html */
# endif
# ifndef _XOPEN_SOURCE
/* setpriority() and getrusage() are XSI, not base POSIX, so requesting
* _POSIX_C_SOURCE alone is not enough to declare them. glibc and musl
* expose them regardless; stricter libcs do not. */
# define _XOPEN_SOURCE 700
# endif
# endif
# include <unistd.h> /* declares _POSIX_VERSION */
# if defined(_POSIX_VERSION) /* POSIX compliant */
Expand Down