miniupnpc-async: Fixes Makefile for Solaris

This commit is contained in:
Thomas Bernard 2016-11-11 10:14:38 -05:00
parent d33e1be3a8
commit d45e957cfc
1 changed files with 6 additions and 1 deletions

View File

@ -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