Added OSX on PowerPC support
This commit is contained in:
parent
e2bb312dd8
commit
7217f60a5f
2 changed files with 3 additions and 2 deletions
|
@ -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 */
|
/* 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__)
|
#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) {
|
int pcap_compile(pcap_t* a, struct bpf_program* b, char* c, int d, bpf_u_int32 e) {
|
||||||
#else
|
#else
|
||||||
int pcap_compile(pcap_t* a, struct bpf_program* b, const char* c, int d, bpf_u_int32 e) {
|
int pcap_compile(pcap_t* a, struct bpf_program* b, const char* c, int d, bpf_u_int32 e) {
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
#else
|
#else
|
||||||
#define WSAEWOULDBLOCK EWOULDBLOCK
|
#define WSAEWOULDBLOCK EWOULDBLOCK
|
||||||
#endif
|
#endif
|
||||||
|
#define WSAENAMETOOLONG ENAMETOOLONG
|
||||||
#define WSAEINPROGRESS EINPROGRESS
|
#define WSAEINPROGRESS EINPROGRESS
|
||||||
#define WSAETIMEDOUT ETIMEDOUT
|
#define WSAETIMEDOUT ETIMEDOUT
|
||||||
#define WSAECONNREFUSED ECONNREFUSED
|
#define WSAECONNREFUSED ECONNREFUSED
|
||||||
|
|
Loading…
Add table
Reference in a new issue