1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-06 01:30:40 +03:00

TunTap.h: fix for undefined u_char, u_short on MacOS

This commit is contained in:
barracuda156 2023-08-14 15:54:56 +08:00
parent 1cf2e7a8ea
commit a80d3f2032

View File

@ -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) */