aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-12 09:23:44 +0100
committerGravatar Sadie Powell2023-07-12 09:23:44 +0100
commit07672be5bd8f77253f29b369ffc8ebee30435be5 (patch)
tree2700395b38210b4c580ae9f39d0adb15d324e102 /make
parentLog if a user specifies an invalid country code in <connect:country>. (diff)
Define _BSD_SOURCE when building on Haiku.
This fixes a few modules which depend on common BSD extensions.
Diffstat (limited to 'make')
-rw-r--r--make/template/main.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 4fc7eb3b7..2f97e19c7 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -94,6 +94,9 @@ endif
ifeq ($(SYSTEM), gnu)
LDLIBS += -ldl -lrt
endif
+ifeq ($(SYSTEM), haiku)
+ CORECXXFLAGS += -D_BSD_SOURCE
+endif
ifeq ($(SYSTEM), solaris)
LDLIBS += -lsocket -lnsl -lrt -lresolv
endif