mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-27 10:39:53 +03:00
Fix compile errors on OpenBSD
- <pthread.h> included for the "pthread_t" type definition. - <net/ethernet.h> include removed as the header doesn't exist. - AI_ALL and AI_V4MAPPED defined to 0 as the options don't exist.
This commit is contained in:
parent
60568da9b7
commit
2f801f30de
@ -25,11 +25,14 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <net/ethernet.h>
|
||||
#include <net/if.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifndef UNIX_OPENBSD
|
||||
#include <net/ethernet.h>
|
||||
#endif
|
||||
|
||||
#ifdef UNIX_SOLARIS
|
||||
#include <sys/sockio.h>
|
||||
#endif
|
||||
|
@ -13,6 +13,14 @@
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#ifndef AI_ALL
|
||||
#define AI_ALL 0
|
||||
#endif
|
||||
|
||||
#ifndef AI_V4MAPPED
|
||||
#define AI_V4MAPPED 0
|
||||
#endif
|
||||
|
||||
static bool cache_enabled;
|
||||
|
||||
static LIST *cache;
|
||||
|
@ -13,6 +13,10 @@
|
||||
|
||||
#ifdef OS_UNIX
|
||||
#include <netinet/in.h>
|
||||
|
||||
#ifdef UNIX_OPENBSD
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Dynamic Value
|
||||
|
Loading…
Reference in New Issue
Block a user