Skip to content

Commit 5973a71

Browse files
keith-packardcarlescufi
authored andcommitted
posix: options/shm.c needs _POSIX_C_SOURCE
This file uses PATH_MAX, which is defined in limits.h when _POSIX_C_SOURCE is set. Signed-off-by: Keith Packard <[email protected]>
1 parent ea366ec commit 5973a71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/posix/options/shm.c

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

7+
#undef _POSIX_C_SOURCE
8+
#define _POSIX_C_SOURCE 200809L
9+
710
#include <string.h>
811
#include <stdio.h>
912

0 commit comments

Comments
 (0)