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 <keithp@keithp.com>
This commit is contained in:
parent
5973a71e1f
commit
dc7c20adf9
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#undef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <zephyr/posix/pthread.h>
|
||||
#include <zephyr/posix/sys/sysconf.h>
|
||||
#include <zephyr/posix/unistd.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue