mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 19:14:46 +02:00
.
This commit is contained in:
@@ -10,7 +10,7 @@ dnl Checks for libraries.
|
||||
AC_CHECK_LIB(descrypt, crypt, IRCDLIBS="$IRCDLIBS-ldescrypt " MKPASSWDLIBS="-ldescrypt",
|
||||
AC_CHECK_LIB(crypt, crypt,IRCDLIBS="$IRCDLIBS-lcrypt " MKPASSWDLIBS="-lcrypt"))
|
||||
AC_CHECK_LIB(socket, socket,IRCDLIBS="$IRCDLIBS-lsocket ")
|
||||
AC_CHECK_LIB(nsl, socket,IRCDLIBS="$IRCDLIBS-lnsl ")
|
||||
AC_CHECK_LIB(nsl, inet_ntoa,IRCDLIBS="$IRCDLIBS-lnsl ")
|
||||
|
||||
AC_SUBST(IRCDLIBS)
|
||||
AC_SUBST(MKPASSWDLIBS)
|
||||
|
||||
@@ -1046,9 +1046,9 @@ else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for socket in -lnsl""... $ac_c" 1>&6
|
||||
echo "configure:1051: checking for socket in -lnsl" >&5
|
||||
ac_lib_var=`echo nsl'_'socket | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
|
||||
echo "configure:1051: checking for inet_ntoa in -lnsl" >&5
|
||||
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@@ -1060,10 +1060,10 @@ cat > conftest.$ac_ext <<EOF
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
builtin and then its argument prototype would still apply. */
|
||||
char socket();
|
||||
char inet_ntoa();
|
||||
|
||||
int main() {
|
||||
socket()
|
||||
inet_ntoa()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
#ifdef PARAMH
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#if defined(__OpenBSD__) || defined(_SOLARIS)
|
||||
#include "sys.h"
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
#ifdef __STDC__
|
||||
# ifndef _WIN32
|
||||
extern __u_l inet_addr(char *);
|
||||
extern char *inet_ntoa(char *);
|
||||
extern char *inet_ntoa(struct IN_ADDR);
|
||||
# endif
|
||||
extern __u_l inet_makeaddr(int, int);
|
||||
extern __u_l inet_network(char *);
|
||||
|
||||
+1
-1
@@ -1123,7 +1123,7 @@ int InitwIRCD(argc, argv)
|
||||
opermotd = (aMotd *) read_file(OPATH, &opermotd);
|
||||
motd = (aMotd *) read_motd(MPATH);
|
||||
svsmotd = (aMotd *) read_file(VPATH, &svsmotd);
|
||||
strcpy(me.sockhost, conf_listen->ip, sizeof(me.sockhost) - 1);
|
||||
strncpy(me.sockhost, conf_listen->ip, sizeof(me.sockhost) - 1);
|
||||
if (me.name[0] == '\0')
|
||||
strncpyzt(me.name, me.sockhost, sizeof(me.name));
|
||||
me.hopcount = 0;
|
||||
|
||||
Reference in New Issue
Block a user