From 7217f60a5f1d4da5a021ccf79531c083fc7fe0ff Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 22 Mar 2013 16:50:36 -0700 Subject: [PATCH] Added OSX on PowerPC support --- sim_ether.c | 4 ++-- sim_sock.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sim_ether.c b/sim_ether.c index 58bec404..d9cf25ff 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -1063,8 +1063,8 @@ 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__) +/* OpenBSD and OS/X on PowerPC have an ancient declaration of pcap_compile which doesn't have a const in the bpf string argument */ +#if defined (__OpenBSD__) || (defined (__APPLE__) && defined (__POWERPC__)) 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) { diff --git a/sim_sock.h b/sim_sock.h index b8af1a23..b817f9bd 100644 --- a/sim_sock.h +++ b/sim_sock.h @@ -58,6 +58,7 @@ #else #define WSAEWOULDBLOCK EWOULDBLOCK #endif +#define WSAENAMETOOLONG ENAMETOOLONG #define WSAEINPROGRESS EINPROGRESS #define WSAETIMEDOUT ETIMEDOUT #define WSAECONNREFUSED ECONNREFUSED