diff options
author | Uman Shahzad <uman@mslm.io> | 2021-09-02 01:56:09 +0500 |
---|---|---|
committer | Uman Shahzad <uman@mslm.io> | 2021-09-02 02:13:24 +0500 |
commit | 43b7ec8d17888df0debccda27dd58f4d1b90245e (patch) | |
tree | bcd8bf9e1848c43389064360283c7dc9b1f1c2fa /examples | |
parent | e1c29bbfe60ebae320b6344c196534db53cf1443 (diff) | |
download | liburing-43b7ec8d17888df0debccda27dd58f4d1b90245e.tar.gz liburing-43b7ec8d17888df0debccda27dd58f4d1b90245e.tar.bz2 |
build: add -D_GNU_SOURCE to all CPPFLAGS/CFLAGS.
Needed for e.g. musl libc which only includes entities like
cpu_set_t if this is defined.
Signed-off-by: Uman Shahzad <uman@mslm.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index 60c1b71..a5d0b93 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,7 +2,7 @@ CPPFLAGS ?= override CPPFLAGS += -D_GNU_SOURCE -I../src/include/ CFLAGS ?= -g -O2 XCFLAGS = -override CFLAGS += -Wall -L../src/ +override CFLAGS += -D_GNU_SOURCE -Wall -L../src/ include ../Makefile.quiet |