From d45e957cfc55b1fd07df07615822ee0267ac5ce6 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 11 Nov 2016 10:14:38 -0500 Subject: [PATCH] miniupnpc-async: Fixes Makefile for Solaris --- miniupnpc-async/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/miniupnpc-async/Makefile b/miniupnpc-async/Makefile index 233bd7d..95cdb79 100644 --- a/miniupnpc-async/Makefile +++ b/miniupnpc-async/Makefile @@ -18,8 +18,13 @@ CFLAGS += -Wall -W CFLAGS += -D_BSD_SOURCE CFLAGS += -DUPNPC_USE_SELECT INSTALL = install + +OS = $(shell uname -s) #following libs are needed on Solaris -#LDLIBS=-lsocket -lnsl -lresolv +ifeq ($(OS), SunOS) + LDLIBS += -lsocket -lnsl -lresolv + CFLAGS += -D__EXTENSIONS__ +endif # APIVERSION is used to build SONAME APIVERSION = 0