Add definition of BIND_8_COMPAT to fix build problem on Mac OS X.

Every other UNIX in existence defines BIND_4_COMPAT in arpa/nameser.h, which
ensures that nameser_compat.h gets included.  Mac OS X changed it to 
BIND_8_COMPAT and stopped including it by default.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@97 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2010-09-06 12:46:03 +00:00
parent 518186b85b
commit cb8e8c21ae
2 changed files with 9 additions and 0 deletions

View File

@@ -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)

View File

@@ -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 <stdio.h>
#include <fcntl.h>
#include <signal.h>