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

Merge pull request #1342 from davidebeatrici/openbsd-compile-fix

Fix compile errors on OpenBSD
This commit is contained in:
Ilya Shipitsin 2021-05-03 23:37:41 +05:00 committed by GitHub
commit e2d61133fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -25,11 +25,14 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <net/ethernet.h>
#include <net/if.h> #include <net/if.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifndef UNIX_OPENBSD
#include <net/ethernet.h>
#endif
#ifdef UNIX_SOLARIS #ifdef UNIX_SOLARIS
#include <sys/sockio.h> #include <sys/sockio.h>
#endif #endif

View File

@ -13,6 +13,14 @@
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
#ifndef AI_ALL
#define AI_ALL 0
#endif
#ifndef AI_V4MAPPED
#define AI_V4MAPPED 0
#endif
static bool cache_enabled; static bool cache_enabled;
static LIST *cache; static LIST *cache;

View File

@ -13,6 +13,10 @@
#ifdef OS_UNIX #ifdef OS_UNIX
#include <netinet/in.h> #include <netinet/in.h>
#ifdef UNIX_OPENBSD
#include <pthread.h>
#endif
#endif #endif
// Dynamic Value // Dynamic Value