Define BIND_4_COMPAT everywhere (except OS X, who just _had_ to be different)

and switch to using BIND4 macros (GETSHORT / GETLONG).

Should fix /nslookup on OpenBSD.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@196 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-05-27 04:42:09 +00:00
parent 82f7a2ccf2
commit 79625bf516
2 changed files with 23 additions and 17 deletions

View File

@@ -126,11 +126,14 @@ for reslib in '' '-lresolv' '-lbind' '-lsocket'
do
LIBS="$reslib $OLDLIBS"
AC_LINK_IFELSE([AC_LANG_SOURCE([
#if defined( __APPLE__ ) && !defined( BIND_8_COMPAT )
#define BIND_8_COMPAT
#endif
#if defined( __OpenBSD__ ) && !defined( BIND_4_COMPAT )
#define BIND_4_COMPAT
#if !defined( __APPLE__ )
#if !defined( BIND_4_COMPAT )
#define BIND_4_COMPAT
#endif
#else
#if !defined( BIND_8_COMPAT )
#define BIND_8_COMPAT
#endif
#endif
AC_INCLUDES_DEFAULT
#ifdef HAVE_NETINET_IN_H