ETHER: Generalized build environments that work correctly
This commit is contained in:
parent
669d07ba3e
commit
bf348c89b3
1 changed files with 5 additions and 2 deletions
|
@ -102,6 +102,11 @@ extern "C" {
|
||||||
#define PCAP_READ_TIMEOUT 1
|
#define PCAP_READ_TIMEOUT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <time.h>
|
||||||
|
#if defined(__struct_timespec_defined) && !defined(_TIMESPEC_DEFINED)
|
||||||
|
#define _TIMESPEC_DEFINED
|
||||||
|
#endif
|
||||||
|
|
||||||
/* set related values to have correct relationships */
|
/* set related values to have correct relationships */
|
||||||
#if defined (USE_READER_THREAD)
|
#if defined (USE_READER_THREAD)
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -113,8 +118,6 @@ extern "C" {
|
||||||
#if (!defined (xBSD) && !defined(_WIN32) && !defined(VMS) && !defined(__CYGWIN__)) || defined (HAVE_TAP_NETWORK) || defined (HAVE_VDE_NETWORK)
|
#if (!defined (xBSD) && !defined(_WIN32) && !defined(VMS) && !defined(__CYGWIN__)) || defined (HAVE_TAP_NETWORK) || defined (HAVE_VDE_NETWORK)
|
||||||
#define MUST_DO_SELECT 1
|
#define MUST_DO_SELECT 1
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
#include <time.h>
|
|
||||||
#endif /* USE_READER_THREAD */
|
#endif /* USE_READER_THREAD */
|
||||||
|
|
||||||
/* give priority to USE_NETWORK over USE_SHARED */
|
/* give priority to USE_NETWORK over USE_SHARED */
|
||||||
|
|
Loading…
Add table
Reference in a new issue