Skip to content

Commit dc7c20a

Browse files
keith-packardcarlescufi
authored andcommitted
posix: sysconf.c uses POSIX values
We need to add _POSIX_C_SOURCE to this file as it uses POSIX values from limits.h including IOV_MAX, CHILD_MAX and ARG_MAX. Signed-off-by: Keith Packard <[email protected]>
1 parent 5973a71 commit dc7c20a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/posix/options/sysconf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#undef _POSIX_C_SOURCE
8+
#define _POSIX_C_SOURCE 200809L
79
#include <zephyr/posix/pthread.h>
810
#include <zephyr/posix/sys/sysconf.h>
911
#include <zephyr/posix/unistd.h>

0 commit comments

Comments
 (0)