-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
zerotier/patches/0001-find-miniupnpc.h-in-staging-directory.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 58aa0c46860bc1700d3277222a9d5ddf37721d65 Mon Sep 17 00:00:00 2001 | ||
From: Moritz Warning <[email protected]> | ||
Date: Mon, 23 Apr 2018 22:12:31 +0200 | ||
Subject: [PATCH] find miniupnpc.h in staging directory | ||
|
||
--- | ||
make-linux.mk | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/make-linux.mk b/make-linux.mk | ||
index c318c785..5b271b0a 100644 | ||
--- a/make-linux.mk | ||
+++ b/make-linux.mk | ||
@@ -22,8 +22,8 @@ ONE_OBJS+=osdep/LinuxEthernetTap.o | ||
# otherwise build into binary as done on Mac and Windows. | ||
ONE_OBJS+=osdep/PortMapper.o | ||
override DEFS+=-DZT_USE_MINIUPNPC | ||
-MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2..*"' /usr/include/miniupnpc/miniupnpc.h && echo 1) | ||
-#MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2.."' /usr/include/miniupnpc/miniupnpc.h && echo 1) | ||
+MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2..*"' $(STAGING_DIR)/usr/include/miniupnpc/miniupnpc.h && echo 1) | ||
+#MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2.."' $(STAGING_DIR)/usr/include/miniupnpc/miniupnpc.h && echo 1) | ||
ifeq ($(MINIUPNPC_IS_NEW_ENOUGH),1) | ||
override DEFS+=-DZT_USE_SYSTEM_MINIUPNPC | ||
LDLIBS+=-lminiupnpc | ||
-- | ||
2.16.3 | ||
|