Skip to content

Commit d675b31

Browse files
Document _XOPEN_SOURCE requirement
1 parent 72db3fe commit d675b31

File tree

1 file changed

+5
-1
lines changed
  • tools/please_pex/preamble

1 file changed

+5
-1
lines changed

tools/please_pex/preamble/BUILD

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ c_binary(
88
srcs = glob(["*.c"]),
99
hdrs = glob(["*.h"]),
1010
compiler_flags = ["-std=c11"],
11-
defines = ["_XOPEN_SOURCE=700"],
11+
defines = [
12+
# path.c relies on realpath(3)'s resolved_path == NULL feature, which was not standardised
13+
# until POSIX.1-2008:
14+
"_XOPEN_SOURCE=700",
15+
],
1216
static = True,
1317
visibility = [
1418
"//tools/please_pex/pex:preamble",

0 commit comments

Comments
 (0)