diff --git a/sim_console.c b/sim_console.c index deff8c36..0e588a5f 100644 --- a/sim_console.c +++ b/sim_console.c @@ -1623,7 +1623,7 @@ for (i = 0; i < val; i++) temptabs[i] = 0; do { cptr = get_glyph (cptr, gbuf, ';'); - d = get_uint (gbuf, 10, val, &r); + d = (int32)get_uint (gbuf, 10, val, &r); if ((r != SCPE_OK) || (d == 0)) { free (temptabs); return SCPE_ARG; diff --git a/sim_ether.h b/sim_ether.h index 309b9cb9..fc14c0fb 100644 --- a/sim_ether.h +++ b/sim_ether.h @@ -132,6 +132,9 @@ */ #if defined(HAVE_PCAP_NETWORK) #define USE_BPF 1 +#if defined (_WIN32) && !defined (BPF_CONST_STRING) +#define BPF_CONST_STRING 1 +#endif #else #define DONT_USE_PCAP_FINDALLDEVS 1 #endif