Skip to content

Instantly share code, notes, and snippets.

@gleox
Created November 27, 2017 19:14
Show Gist options
  • Save gleox/528d518f5d8d7bbab00e4312417f7d7e to your computer and use it in GitHub Desktop.
Save gleox/528d518f5d8d7bbab00e4312417f7d7e to your computer and use it in GitHub Desktop.
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