1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

ETHER: Allow clean build with USE_NETWORK and not USE_READER_THREAD

This commit is contained in:
Mark Pizzolato
2017-06-04 11:13:37 -07:00
parent 3b67a8658d
commit e058b0124b
2 changed files with 7 additions and 5 deletions

View File

@@ -104,6 +104,7 @@ extern "C" {
/* set related values to have correct relationships */
#if defined (USE_READER_THREAD)
#include <pthread.h>
#if defined (USE_SETNONBLOCK)
#undef USE_SETNONBLOCK
#endif /* USE_SETNONBLOCK */
@@ -112,6 +113,8 @@ extern "C" {
#if (!defined (xBSD) && !defined(_WIN32) && !defined(VMS) && !defined(__CYGWIN__)) || defined (HAVE_TAP_NETWORK) || defined (HAVE_VDE_NETWORK)
#define MUST_DO_SELECT 1
#endif
#else
#include <time.h>
#endif /* USE_READER_THREAD */
/* give priority to USE_NETWORK over USE_SHARED */