mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-25 01:29:53 +03:00
Merge pull request #1883 from barracuda156/darwin
Fix macOS build: add missing headers
This commit is contained in:
commit
efac849ed7
@ -23,6 +23,10 @@
|
||||
#ifdef UNIX_OPENBSD
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifdef UNIX_MACOS
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -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