mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-25 01:29:53 +03:00
TunTap.h: fix for undefined u_char, u_short on MacOS
This commit is contained in:
parent
1cf2e7a8ea
commit
a80d3f2032
@ -162,6 +162,13 @@ struct tundladdr {
|
||||
#ifndef _NET_IF_TUN_H_
|
||||
#define _NET_IF_TUN_H_
|
||||
|
||||
#ifdef UNIX_MACOS
|
||||
#ifndef _DARWIN_C_SOURCE
|
||||
#define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
/* Refer to if_tunvar.h for the softc stuff */
|
||||
|
||||
/* Maximum transmit packet size (default) */
|
||||
|
Loading…
Reference in New Issue
Block a user