Created
November 27, 2017 19:14
-
-
Save gleox/528d518f5d8d7bbab00e4312417f7d7e to your computer and use it in GitHub Desktop.
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
diff --git a/Makefile b/Makefile | |
index b670978..ece7ac3 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -8,6 +8,7 @@ CC=gcc | |
DEBUG?=-g3 | |
#OPTIMIZATION?=-O2 | |
WARN?=-Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs | |
+OPTIONS?=-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib | |
#Ultrasparc64 users experiencing SIGBUS should try the following gcc options | |
#(thanks to Robert Gibbon) | |
diff --git a/tuntap_osx.c b/tuntap_osx.c | |
index 6b37b1f..6b32fd6 100644 | |
--- a/tuntap_osx.c | |
+++ b/tuntap_osx.c | |
@@ -19,7 +19,7 @@ | |
#ifdef _DARWIN_ | |
-void tun_close(tuntap_dev *device); | |
+//void tun_close(tuntap_dev *device); | |
/* ********************************** */ | |
@@ -77,7 +77,7 @@ int tuntap_open(tuntap_dev *device /* ignored */, | |
fd = popen(buf, "r"); | |
if(fd < 0) { | |
- tun_close(device); | |
+ tuntap_close(device); | |
return(-1); | |
} else { | |
int a, b, c, d, e, f; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment