changeset 932:13bdc97d433e

[gaim-migrate @ 942] bah. hopefully this will help people who aren't POSIX compliant. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 21 Sep 2000 00:45:30 +0000
parents 59d9e1177ab5
children 07f056222d68
files acconfig.h configure.in libfaim/README.gaim libfaim/aim_ft.c
diffstat 4 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/acconfig.h	Wed Sep 20 23:35:17 2000 +0000
+++ b/acconfig.h	Thu Sep 21 00:45:30 2000 +0000
@@ -13,6 +13,7 @@
 #undef ESD_SOUND
 #undef _REENTRANT
 #undef NEED_GNOMESUPPORT_H
+#undef NEED_SOCKLEN_T
 
 
 
--- a/configure.in	Wed Sep 20 23:35:17 2000 +0000
+++ b/configure.in	Thu Sep 21 00:45:30 2000 +0000
@@ -8,6 +8,7 @@
 AC_PROG_CC
 AC_PROG_INSTALL
 
+
 ALL_LINGUAS="de fr es zh_CN ko"
 AM_GNU_GETTEXT
 
@@ -28,6 +29,7 @@
 AC_TYPE_SIGNAL
 AC_FUNC_STRFTIME
 AC_CHECK_FUNCS(socket strdup strstr atexit getaddrinfo)
+AC_TRY_COMPILE(sys/socket.h, typedef unsigned int socklen_t;, AC_DEFINE(NEED_SOCKLEN_T),)
 
 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/README.gaim	Wed Sep 20 23:35:17 2000 +0000
+++ b/libfaim/README.gaim	Thu Sep 21 00:45:30 2000 +0000
@@ -13,6 +13,7 @@
 included with the libfaim source on sourceforge) with the Gaim GTK front-end.
 So far the changes to libfaim that I've made are:
 - remove mkbuildinfo.sh and put the #defines it creates into Makefile.am
+- check for socklen_t for Solaris people (in aim_ft.c)
 
 And finally, a word of warning. Gaim/Faim is VERY buggy. Please, don't use this
 for anything other than laughs right now. Hopefully we'll get it working better
--- a/libfaim/aim_ft.c	Wed Sep 20 23:35:17 2000 +0000
+++ b/libfaim/aim_ft.c	Thu Sep 21 00:45:30 2000 +0000
@@ -7,6 +7,9 @@
 #include <sys/utsname.h> /* for aim_directim_initiate */
 #include <arpa/inet.h> /* for inet_ntoa */
 #endif
+#ifdef NEED_SOCKLEN_T
+typedef unsigned int socklen_t;
+#endif
 
 /* aim_msgcookies.c is mostly new. just look at the diff and replace yours, easiest. */