# HG changeset patch # User Eric Warmenhoven # Date 965768587 0 # Node ID 2c0a7d245bd26edc71e3fc857aa2b576bf39a80c # Parent 9a01b3fb1a9da4a891b503a5ddca074082b63f10 [gaim-migrate @ 650] solaris is b0rken; it doesn't have getaddrinfo; this tries to get around it committer: Tailor Script diff -r 9a01b3fb1a9d -r 2c0a7d245bd2 configure.in --- a/configure.in Tue Aug 08 20:55:17 2000 +0000 +++ b/configure.in Tue Aug 08 21:03:07 2000 +0000 @@ -27,7 +27,7 @@ dnl Checks for library functions. AC_TYPE_SIGNAL AC_FUNC_STRFTIME -AC_CHECK_FUNCS(socket strdup strstr atexit) +AC_CHECK_FUNCS(socket strdup strstr atexit getaddrinfo) dnl This is a bad, bad hack. I am a bad, bad man. CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I../" diff -r 9a01b3fb1a9d -r 2c0a7d245bd2 libfaim/aim_ft.c --- a/libfaim/aim_ft.c Tue Aug 08 20:55:17 2000 +0000 +++ b/libfaim/aim_ft.c Tue Aug 08 21:03:07 2000 +0000 @@ -3,6 +3,8 @@ #include /* for aim_directim_initiate */ #include /* for inet_ntoa */ +#include "config.h" + /* aim_msgcookies.c is mostly new. just look at the diff and replace yours, easiest. */ /* @@ -641,6 +643,7 @@ int aim_listenestablish(u_short portnum) { +#if HAVE_GETADDRINFO int listenfd; const int on = 1; struct addrinfo hints, *res, *ressave; @@ -672,6 +675,10 @@ } freeaddrinfo(ressave); return listenfd; +#else +#warn You do not have getaddrinfo(); You cannot request DirectIM + return -1; +#endif } int aim_get_command_rendezvous(struct aim_session_t *sess, struct aim_conn_t *conn)