diff options
author | wm4 <wm4@nowhere> | 2019-06-30 01:27:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 3e22ed46b41bd4e6503bc68fff8322ff937add26 (patch) | |
tree | 26063a797d4385d47c450e44c4a6b10d8ed340fe /waftools/detections | |
parent | 9fd90c549c4022d7f9283adc1a97a076614c1458 (diff) | |
download | mpv-3e22ed46b41bd4e6503bc68fff8322ff937add26.tar.bz2 mpv-3e22ed46b41bd4e6503bc68fff8322ff937add26.tar.xz |
build: stop defining _LARGEFILE[64]_SOURCE
_LARGEFILE_SOURCE and _LARGEFILE64_SOURCE are not required for 64 bit
off_t, only _FILE_OFFSET_BITS.
See somewhere on: https://wiki.musl-libc.org/faq.html
I didn't test this anywhere except 64 bit Linux. It's probably a good
idea to test on Windows and all Android versions.
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 5916475307..c382afcab7 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -18,9 +18,7 @@ def __test_and_add_flags__(ctx, flags): def __add_generic_flags__(ctx): ctx.env.CFLAGS += ["-D_ISOC99_SOURCE", "-D_GNU_SOURCE", - "-D_LARGEFILE_SOURCE", "-D_FILE_OFFSET_BITS=64", - "-D_LARGEFILE64_SOURCE", - "-Wall"] + "-D_FILE_OFFSET_BITS=64", "-Wall"] if ctx.check_cc(cflags="-std=c11", mandatory=False): ctx.env.CFLAGS += ["-std=c11"] |