From 7398e63b009503497c6aca22f23e08d359551f34 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 3 Sep 2019 00:39:09 -0700 Subject: [PATCH] ETHER: Only reference pcap_lib_version() when HAVE_PCAP_NETWORK is defined --- sim_ether.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim_ether.c b/sim_ether.c index cf5cf438..8e63ae61 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -2440,7 +2440,11 @@ return SCPE_OK; const char *eth_version (void) { +#if defined(HAVE_PCAP_NETWORK) return pcap_lib_version(); +#else +return NULL; +#endif } t_stat eth_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)