commit aa7e332
uint
·
2026-10-26 16:51:25 +0000 UTC
parent c43c8b4
test if on OpenBSD for POSIX definition it interferes with pledge and unveil exposure
1 files changed,
+2,
-1
M
Makefile
M
Makefile
+2,
-1
1@@ -2,7 +2,8 @@
2 CC = cc
3 VER = 2.26
4 GIT_VER != git describe --always --tags 2>/dev/null || echo unknown
5-CPPFLAGS =-DGIT_VER=\"$(GIT_VER)\" -DVERSION=\"$(VER)\"
6+POSIX_DEF != test `uname` != OpenBSD && echo -D_POSIX_C_SOURCE=200809L || :
7+CPPFLAGS = $(POSIX_DEF) -DGIT_VER=\"$(GIT_VER)\" -DVERSION=\"$(VER)\" $(POSIX_FLAGS)
8 CFLAGS = -std=c99 -Wall -Wextra -Iserver/include -pthread
9 SRC = server/config.c \
10 server/http.c \