mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 00:04:57 +03:00
Merge pull request #10 from nattoheaven/tuntaposx
Supporting VLAN for Mac OS X using TunTapOSX
This commit is contained in:
@ -106,6 +106,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 */
|
||||
@ -127,6 +128,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
|
||||
|
Reference in New Issue
Block a user