Skip to content

Commit 8de7f08

Browse files
Document _XOPEN_SOURCE requirement
1 parent cb94f56 commit 8de7f08

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • tools/please_pex/preamble

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)