diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-09-17 10:11:02 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-09-17 10:11:02 +0200 |
commit | bb69371f66aa72a5508cff5335666807984c30b3 (patch) | |
tree | 344eff8d5969ee9bcb7c3cec74e8f2dfb131341e /external/miniupnpc/Makefile | |
parent | update rapidjson (diff) | |
download | monero-bb69371f66aa72a5508cff5335666807984c30b3.tar.xz |
updated miniupnp
Diffstat (limited to '')
-rw-r--r-- | external/miniupnpc/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/external/miniupnpc/Makefile b/external/miniupnpc/Makefile index 99a69301c..b7826caa1 100644 --- a/external/miniupnpc/Makefile +++ b/external/miniupnpc/Makefile @@ -38,6 +38,9 @@ CFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT CFLAGS += -DMINIUPNPC_GET_SRC_ADDR CFLAGS += -D_BSD_SOURCE CFLAGS += -D_DEFAULT_SOURCE +ifeq ($(OS), NetBSD) +CFLAGS += -D_NETBSD_SOURCE +endif ifneq ($(OS), FreeBSD) ifneq ($(OS), Darwin) #CFLAGS += -D_POSIX_C_SOURCE=200112L @@ -136,7 +139,11 @@ endif LIBDIR ?= lib # install directories -INSTALLPREFIX ?= $(PREFIX)/usr +ifeq ($(strip $(PREFIX)),) +INSTALLPREFIX ?= /usr +else +INSTALLPREFIX ?= $(PREFIX) +endif INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR) INSTALLDIRBIN = $(INSTALLPREFIX)/bin |