mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
Fix builds on BSD host systems
This commit is contained in:
@@ -961,7 +961,12 @@ void pcap_close(pcap_t* a) {
|
||||
}
|
||||
}
|
||||
|
||||
/* OpenBSD has an ancient declaration of pcap_compile which doesn't have a const in the bpf string argument */
|
||||
#if defined (__OpenBSD__)
|
||||
int pcap_compile(pcap_t* a, struct bpf_program* b, char* c, int d, bpf_u_int32 e) {
|
||||
#else
|
||||
int pcap_compile(pcap_t* a, struct bpf_program* b, const char* c, int d, bpf_u_int32 e) {
|
||||
#endif
|
||||
if (load_pcap() != 0) {
|
||||
return p_pcap_compile(a, b, c, d, e);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user