1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 10:09:52 +03:00

Merge pull request #1538 from hww3/hww3/illumos-headers

Merge pull request #1538: Add missing headers required for solaris/illumos
This commit is contained in:
Ilya Shipitsin 2022-01-07 11:13:16 +03:00 committed by GitHub
commit a4334753ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

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

View File

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

View File

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