diff options
author | Peter Colberg <peter@colberg.org> | 2016-01-05 21:42:46 -0500 |
---|---|---|
committer | Peter Colberg <peter@colberg.org> | 2016-01-05 21:42:46 -0500 |
commit | ab0b1eb256ec94639e814ad6738753ae752fd4c8 (patch) | |
tree | 5a77e54501e165746fb0ce5195222898407b190e /src | |
parent | 7a61ff444a3010aad3707682632fa03a0275725c (diff) | |
download | twinkle-ab0b1eb256ec94639e814ad6738753ae752fd4c8.tar twinkle-ab0b1eb256ec94639e814ad6738753ae752fd4c8.tar.gz twinkle-ab0b1eb256ec94639e814ad6738753ae752fd4c8.tar.lz twinkle-ab0b1eb256ec94639e814ad6738753ae752fd4c8.tar.xz twinkle-ab0b1eb256ec94639e814ad6738753ae752fd4c8.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/stun/udp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |