diff --git a/minissdpd/Makefile b/minissdpd/Makefile index efce796..18c0e2a 100644 --- a/minissdpd/Makefile +++ b/minissdpd/Makefile @@ -25,7 +25,8 @@ OS = $(shell $(CC) -dumpmachine) ifneq (, $(findstring linux, $(OS))) LDLIBS += -lnfnetlink -else ifneq (, $(findstring freebsd, $(OS))) +endif +ifeq ($(DEB_HOST_ARCH_OS), kfreebsd) LDLIBS += -lfreebsd-glue else ifneq (, $(findstring sun, $(OS))) CFLAGS += -D_XOPEN_SOURCE