changeset 640:2c0a7d245bd2

[gaim-migrate @ 650] solaris is b0rken; it doesn't have getaddrinfo; this tries to get around it committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 08 Aug 2000 21:03:07 +0000
parents 9a01b3fb1a9d
children e947cb269c9d
files configure.in libfaim/aim_ft.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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../"
--- 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 <sys/utsname.h> /* for aim_directim_initiate */
 #include <arpa/inet.h> /* 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)