From 9ec4f49540aa7c5e7d75b0c38fdb959d43a12ed5 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 15 May 2012 13:16:11 +0000 Subject: [PATCH] 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 --- Changelog | 3 +++ source/misc.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/Changelog b/Changelog index 506819f..b39e4ce 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,8 @@ [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 platforms. Thanks to brabes, snadge and packet. (caf) diff --git a/source/misc.c b/source/misc.c index 8b48e2d..4158827 100644 --- a/source/misc.c +++ b/source/misc.c @@ -1996,6 +1996,11 @@ void ar_rename_nick(char *old_nick, char *new_nick, int server) #if defined( __APPLE__ ) && !defined( BIND_8_COMPAT ) #define BIND_8_COMPAT #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 #include