diff --git a/src/Mayaqua/Network.h b/src/Mayaqua/Network.h index 202df410..861993c2 100644 --- a/src/Mayaqua/Network.h +++ b/src/Mayaqua/Network.h @@ -23,6 +23,10 @@ #ifdef UNIX_OPENBSD #include #endif + +#ifdef UNIX_MACOS +#include +#endif #endif diff --git a/src/Mayaqua/TunTap.h b/src/Mayaqua/TunTap.h index 12f076c0..792ba0dd 100644 --- a/src/Mayaqua/TunTap.h +++ b/src/Mayaqua/TunTap.h @@ -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 +#endif + /* Refer to if_tunvar.h for the softc stuff */ /* Maximum transmit packet size (default) */