diff --git a/Changelog b/Changelog index eda9030..ba92f0e 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2c01] +* Add definition of BIND_8_COMPAT to fix build problem on Mac OS X. (caf) + * Ensure that SHOW_AWAY_ONCE doesn't hide away status in /whois output. (caf) * Fix the the -z command line option for specifying username. (flashback) diff --git a/source/misc.c b/source/misc.c index 4a82f58..67a8c03 100644 --- a/source/misc.c +++ b/source/misc.c @@ -1971,6 +1971,13 @@ void ar_rename_nick(char *old_nick, char *new_nick, int server) * of property which results from the use of this software. * heavily modified for use in a irc client. */ + +/* In OS X 10.3 onward, we have to define BIND_8_COMPAT to get + * nameser_compat.h included, to get the "old" bind interface. */ +#if defined( __APPLE__ ) && !defined( BIND_8_COMPAT ) + #define BIND_8_COMPAT +#endif + #include #include #include