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