1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Merge pull request #1883 from barracuda156/darwin

Fix macOS build: add missing headers
This commit is contained in:
Ilya Shipitsin 2023-08-14 19:58:06 +02:00 committed by GitHub
commit efac849ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,10 @@
#ifdef UNIX_OPENBSD
#include <pthread.h>
#endif
#ifdef UNIX_MACOS
#include <pthread.h>
#endif
#endif

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