Skip to content

Commit

Permalink
Merge pull request #10 from fedemartinezdev/add-support-for-macos
Browse files Browse the repository at this point in the history
Adds support for Mac OS
  • Loading branch information
vorner committed Aug 5, 2022
2 parents 3de47e2 + c3bb5b2 commit cb3ef67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tuntap.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@
#include <string.h>

#include <sys/socket.h>
#ifdef __linux__
#include <linux/if.h>
#include <linux/if_tun.h>
#else
#include <net/if.h>
#define IFF_TUN 0x0001
#define IFF_TAP 0x0002
#define IFF_NO_PI 0x1000
#define TUNSETIFF _IOW('T', 202, int)
#endif
#include <sys/ioctl.h>

/**
Expand Down

0 comments on commit cb3ef67

Please sign in to comment.