mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-20 02:09:25 +03:00
TunTap.h: fix for undefined u_char, u_short on MacOS
This commit is contained in:
@ -162,6 +162,13 @@ struct tundladdr {
|
|||||||
#ifndef _NET_IF_TUN_H_
|
#ifndef _NET_IF_TUN_H_
|
||||||
#define _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 */
|
/* Refer to if_tunvar.h for the softc stuff */
|
||||||
|
|
||||||
/* Maximum transmit packet size (default) */
|
/* Maximum transmit packet size (default) */
|
||||||
|
Reference in New Issue
Block a user