Bug 844430: Add the correct build defines to fix libsctp on NetBSD/OpenBSD/Dragonfly. r=jesup
authorLandry Breuil <landry@openbsd.org>
Sat, 08 Jun 2013 12:48:30 +0200
changeset 141572 308462ba17bae57b9571fe397e0480b1c3217d01
parent 141571 0acfbc3b49415469d0720639d2a75a516a9747f4
child 141573 82fab5c8a6d5a94c6a0f32a942976595b6e722a2
push id3911
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 20:17:26 +0000
treeherdermozilla-aurora@7e26ca8db92b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs844430
milestone24.0a1
Bug 844430: Add the correct build defines to fix libsctp on NetBSD/OpenBSD/Dragonfly. r=jesup
netwerk/sctp/src/Makefile.in
--- a/netwerk/sctp/src/Makefile.in
+++ b/netwerk/sctp/src/Makefile.in
@@ -92,21 +92,42 @@ DEFINES += -D__Userspace_os_Linux=1
 DEFINES += -D_GNU_SOURCE
 else
 ifeq ($(OS_TARGET),FreeBSD)
 DEFINES += \
   -D__Userspace_os_FreeBSD=1 \
   -U__FreeBSD__ \
   $(NULL)
 else
+ifeq ($(OS_TARGET),NetBSD)
+DEFINES += \
+  -D__Userspace_os_NetBSD=1 \
+  -U__NetBSD__ \
+  $(NULL)
+else
+ifeq ($(OS_TARGET),OpenBSD)
+DEFINES += \
+  -D__Userspace_os_OpenBSD=1 \
+  -U__OpenBSD__ \
+  $(NULL)
+else
+ifeq ($(OS_TARGET),DragonFly)
+DEFINES += \
+  -D__Userspace_os_DragonFly=1 \
+  -U__DragonFly__ \
+  $(NULL)
+else
 #error Unsupported platform!
 endif
 endif
 endif
 endif
+endif
+endif
+endif
 
 include $(topsrcdir)/config/config.mk
 include $(topsrcdir)/ipc/chromium/chromium-config.mk
 include $(topsrcdir)/config/rules.mk
 
 ifdef GNU_CC
 CFLAGS += -std=gnu99
 endif