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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user