From ab0b1eb256ec94639e814ad6738753ae752fd4c8 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Tue, 5 Jan 2016 21:42:46 -0500 Subject: Fix conflicting definition of socklen_t on GNU Hurd GNU Hurd and OS X both define __MACH__. Test for __APPLE__ to differentiate between GNU Hurd and OS X. --- src/stun/udp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stun/udp.h b/src/stun/udp.h index 13f8353..35fcb75 100644 --- a/src/stun/udp.h +++ b/src/stun/udp.h @@ -2,7 +2,7 @@ #define udp_h -#ifdef __MACH__ +#if defined(__APPLE__) && defined(__MACH__) typedef int socklen_t; #endif -- cgit v1.2.3