Apply patch from snadge to set BIND_4_COMPAT on OpenBSD. This is similar

to the existing BIND_8_COMPAT fix for OSX.

Oh how I hate the /nslookup function.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@187 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-05-15 13:16:11 +00:00
parent 2f79061c0d
commit 9ec4f49540
2 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
[Changes 1.2c01] [Changes 1.2c01]
* Apply patch from snadge defining BIND_4_COMPAT on OpenBSD, to allow
/nslookup to build. (caf)
* Fix known problem with IPv6 on FreeBSD and enable IPv6 on all supporting * Fix known problem with IPv6 on FreeBSD and enable IPv6 on all supporting
platforms. Thanks to brabes, snadge and packet. (caf) platforms. Thanks to brabes, snadge and packet. (caf)

View File

@@ -1996,6 +1996,11 @@ void ar_rename_nick(char *old_nick, char *new_nick, int server)
#if defined( __APPLE__ ) && !defined( BIND_8_COMPAT ) #if defined( __APPLE__ ) && !defined( BIND_8_COMPAT )
#define BIND_8_COMPAT #define BIND_8_COMPAT
#endif #endif
/* In OpenBSD, we have to define BIND_4_COMPAT to get
* nameser_compat.h included, to get the "old" bind interface. */
#if defined( __OpenBSD__ ) && !defined( BIND_4_COMPAT )
#define BIND_4_COMPAT
#endif
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>