mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-09 04:05:12 -04:00
Compile programs with -D_POSIX_C_SOURCE=200809L
The _DEFAULT_SOURCE feature test macro is only supported by glibc 2.19 and later. As a result, various things were not being defined when building with an older glibc version, causing compile errors. Instead, _POSIX_C_SOURCE=200809L should expose everything we need.
This commit is contained in:
parent
27c13370cb
commit
671e2bb5b5
6
Makefile
6
Makefile
@ -141,9 +141,9 @@ DEFAULT_TARGETS += $(SHARED_LIB)
|
||||
|
||||
#### Programs
|
||||
|
||||
PROG_CFLAGS += $(CFLAGS) \
|
||||
-D_DEFAULT_SOURCE \
|
||||
-D_FILE_OFFSET_BITS=64 \
|
||||
PROG_CFLAGS += $(CFLAGS) \
|
||||
-D_POSIX_C_SOURCE=200809L \
|
||||
-D_FILE_OFFSET_BITS=64 \
|
||||
-DHAVE_CONFIG_H
|
||||
|
||||
PROG_COMMON_HEADERS := programs/prog_util.h programs/config.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user