diff options
author | Bo Yang <teboring@google.com> | 2019-03-05 14:27:35 -0800 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2019-03-05 14:27:35 -0800 |
commit | 8b75e5c1197621b29ec2924cdd90f88b1e71ce3b (patch) | |
tree | afbe3280c00c72822d713b80e3463391ad9afb3b /tools | |
parent | da8d1392c15b56a55f3d98108072c7fa9d73fe79 (diff) |
Add _XOPEN_SOURCE to amalgamate.py
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/amalgamate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/amalgamate.py b/tools/amalgamate.py index 038c83f..c4c8a1b 100755 --- a/tools/amalgamate.py +++ b/tools/amalgamate.py @@ -17,6 +17,7 @@ class Amalgamator: self.output_c = open(output_path + "upb.c", "w") self.output_c.write("/* Amalgamated source file */\n") + self.output_c.write('#define _XOPEN_SOURCE 700\n') self.output_c.write('#include "upb.h"\n') self.output_c.write(open("upb/port_def.inc").read()) |