1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Add missing headers required for solaris/illumos

This commit is contained in:
H William Welliver 2022-01-06 16:09:27 -05:00
parent 10b5034f0d
commit fd92c754fc
3 changed files with 9 additions and 2 deletions

View File

@ -29,11 +29,13 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifndef UNIX_OPENBSD #if !defined(UNIX_OPENBSD) && !defined(UNIX_SOLARIS)
#include <net/ethernet.h> #include <net/ethernet.h>
#endif #endif
#ifdef UNIX_SOLARIS #ifdef UNIX_SOLARIS
#include <stropts.h>
#include <sys/dlpi.h>
#include <sys/sockio.h> #include <sys/sockio.h>
#endif #endif

View File

@ -29,7 +29,7 @@
#include <net/if.h> #include <net/if.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef UNIX_OPENBSD #if defined(UNIX_OPENBSD) || defined(UNIX_SOLARIS)
#include <netinet/if_ether.h> #include <netinet/if_ether.h>
#else #else
#include <net/ethernet.h> #include <net/ethernet.h>

View File

@ -46,6 +46,11 @@
#include <sys/statfs.h> #include <sys/statfs.h>
#endif #endif
#ifdef UNIX_SOLARIS
#define USE_STATVFS
#include <sys/statvfs.h>'
#endif
#ifdef UNIX_MACOS #ifdef UNIX_MACOS
#ifdef NO_VLAN #ifdef NO_VLAN
// Struct statfs for MacOS X // Struct statfs for MacOS X