mirror of
https://github.com/simh/simh.git
synced 2026-04-28 20:57:26 +00:00
SLIRP: Allow NAT networking even if pthreads are not available.
As mentioned in #284
This commit is contained in:
@@ -42,6 +42,14 @@
|
|||||||
#include "sim_sock.h"
|
#include "sim_sock.h"
|
||||||
#include "libslirp.h"
|
#include "libslirp.h"
|
||||||
|
|
||||||
|
#if !defined (USE_READER_THREAD)
|
||||||
|
#define pthread_mutex_init(mtx, val)
|
||||||
|
#define pthread_mutex_destroy(mtx)
|
||||||
|
#define pthread_mutex_lock(mtx)
|
||||||
|
#define pthread_mutex_unlock(mtx)
|
||||||
|
#define pthread_mutex_t int
|
||||||
|
#endif
|
||||||
|
|
||||||
#define IS_TCP 0
|
#define IS_TCP 0
|
||||||
#define IS_UDP 1
|
#define IS_UDP 1
|
||||||
static const char *tcpudp[] = {
|
static const char *tcpudp[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user