fix(ci): _DEFAULT_SOURCE for usleep under glibc strict c11

This commit is contained in:
Humza committed 2026-09-25 18:44:59 +02:00
1 parent 1bf56acc41
commit 92947f4031
1 file changed
+3 -2
+3 -2
View File
@@ -1,6 +1,7 @@
CC ?= cc
# Host tests target POSIX systems (glibc under -std=c11 hides fileno/strdup/etc).
CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -Wall -Wextra -Werror -DHEALTH_TESTABLE -I../orbisrpc -I../third_party/mbedtls/include -I$(SQLITE_DIR)
# Host tests target POSIX systems (glibc under -std=c11 hides fileno/strdup/etc;
# _DEFAULT_SOURCE re-enables usleep and friends).
CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -Wall -Wextra -Werror -DHEALTH_TESTABLE -I../orbisrpc -I../third_party/mbedtls/include -I$(SQLITE_DIR)
TARGET := test_utils
OBJDIR := .objs