From 92947f40312d126dc910cb74bb6ef3a987813cee Mon Sep 17 00:00:00 2001 From: Humza <204067870+SirHumza@users.noreply.github.com> Date: Fri, 25 Sep 2026 18:44:59 +0200 Subject: [PATCH] fix(ci): _DEFAULT_SOURCE for usleep under glibc strict c11 --- tests/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 7b57327..39dce5b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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