ne2000: Decouple emulator from pcap

Currently the ne2000 emulator explicitly depends on pcap.
Decouple the ne2000 code and pcap code so we can always build with the
emulator but optionally disable pcap.

This also updates build defines and configuration to make this
decoupling explicit to the user.
This commit is contained in:
Jookia
2021-03-04 10:12:13 +11:00
parent 5c6c8f22c5
commit cb132e02ad
10 changed files with 40 additions and 45 deletions

View File

@@ -92,8 +92,8 @@
/* Define to 1 to enable MT32 emulation (x86/x86_64 only) */
/* #undef C_MT32 */
/* Define to 1 to enable NE2000 ethernet passthrough, requires libpcap */
/* #undef C_NE2000 */
/* Define to 1 to enable ethernet passthrough, requires libpcap */
/* #undef C_PCAP */
/* Define to 1 to use opengl display output support */
//#define C_OPENGL 1

View File

@@ -114,8 +114,8 @@
/* Define to 1 to enable MT32 emulation (x86/x86_64 only) */
/* #undef C_MT32 */
/* Define to 1 to enable NE2000 ethernet passthrough, requires libpcap */
#define C_NE2000 1
/* Define to 1 to enable ethernet passthrough, requires libpcap */
#define C_PCAP 1
/* Define to 1 to use opengl display output support */
/*#define C_OPENGL 1*/