1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 16:25:01 +03:00

Supporting VLAN for Mac OS X using TunTapOSX

This commit is contained in:
nattoheaven
2014-01-14 23:19:37 +09:00
parent c32bf3b84f
commit 8779e59295
7 changed files with 91 additions and 28 deletions

View File

@ -96,6 +96,7 @@
// Struct statfs for MacOS X
#ifdef UNIX_MACOS
#ifdef NO_VLAN
typedef struct fsid { int32_t val[2]; } fsid_t;
struct statfs {
short f_otype; /* TEMPORARY SHADOW COPY OF f_type */
@ -117,6 +118,9 @@ struct statfs {
char f_mntonname[90]; /* directory on which mounted */
char f_mntfromname[90];/* mounted filesystem */
};
#else
#include <sys/mount.h>
#endif
#endif // UNIX_MACOS
// Scandir() function for Solaris