Skip to content

Commit 60b76c7

Browse files
0-wiz-0amaanq
authored andcommitted
Revert "build: do not define _POSIX_C_SOURCE on NetBSD"
This reverts commit 5492145.
1 parent 2bf04d1 commit 60b76c7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
ifeq ($(OS),Windows_NT)
22
$(error Windows is not supported)
3-
else
4-
detected_OS := $(shell uname -s)
53
endif
64

75
VERSION := 0.25.1
@@ -29,10 +27,7 @@ OBJ := $(SRC:.c=.o)
2927
ARFLAGS := rcs
3028
CFLAGS ?= -O3 -Wall -Wextra -Wshadow -Wpedantic -Werror=incompatible-pointer-types
3129
override CFLAGS += -std=c11 -fPIC -fvisibility=hidden
32-
ifneq ($(detected_OS),NetBSD)
33-
override CFLAGS += -D_POSIX_C_SOURCE=200112L
34-
endif
35-
override CFLAGS += -D_DEFAULT_SOURCE
30+
override CFLAGS += -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE
3631
override CFLAGS += -Ilib/src -Ilib/src/wasm -Ilib/include
3732

3833
# ABI versioning

0 commit comments

Comments
 (0)