From e24ef8e0cdfa15b30518676dd6b89bc22b030882 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Sat, 8 Jun 2013 12:48:30 +0200 Subject: [PATCH] Bug 844430: Add the correct build defines to fix libsctp on NetBSD/OpenBSD/Dragonfly. r=jesup --- netwerk/sctp/src/Makefile.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/netwerk/sctp/src/Makefile.in b/netwerk/sctp/src/Makefile.in index 2a7c489e02d..42b0456eace 100644 --- a/netwerk/sctp/src/Makefile.in +++ b/netwerk/sctp/src/Makefile.in @@ -97,11 +97,32 @@ DEFINES += \ -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