# HG changeset patch # User masneyb # Date 1056590513 0 # Node ID 7d7d8299610d9d2a58d098212687a3ce3e17d836 # Parent 0098dae654a5554fbbee4335e3115c3b3f7bb508 2003-6-25 Brian Masney * acinclude.m4 - added AC_TYPE_SOCKLEN_T. Thanks to Nathan Robertson for pointing this out * configure.in - call AC_TYPE_SOCKLEN_T. Updates to AC_OUTPUT * lib/gftp.h - remove check for HAVE_SOCKLEN_T * Makefile.am - formatting fixes diff -r 0098dae654a5 -r 7d7d8299610d ChangeLog --- a/ChangeLog Thu Jun 26 01:04:12 2003 +0000 +++ b/ChangeLog Thu Jun 26 01:21:53 2003 +0000 @@ -1,3 +1,13 @@ +2003-6-25 Brian Masney + * acinclude.m4 - added AC_TYPE_SOCKLEN_T. Thanks to + Nathan Robertson for pointing this out + + * configure.in - call AC_TYPE_SOCKLEN_T. Updates to AC_OUTPUT + + * lib/gftp.h - remove check for HAVE_SOCKLEN_T + + * Makefile.am - formatting fixes + 2003-6-25 Brian Masney * configure.in - added mk to ALL_LINGUAS @@ -1111,7 +1121,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.100 2003/06/26 01:04:08 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.101 2003/06/26 01:21:52 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r 0098dae654a5 -r 7d7d8299610d Makefile.am --- a/Makefile.am Thu Jun 26 01:04:12 2003 +0000 +++ b/Makefile.am Thu Jun 26 01:21:53 2003 +0000 @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS= intl docs intl lib po src -EXTRA_DIST= config.rpath mkinstalldirs ChangeLog-old README THANKS TODO \ +SUBDIRS= docs intl lib po src +EXTRA_DIST= config.rpath mkinstalldirs ChangeLog-old README THANKS TODO \ gftp.spec.in debian/changelog debian/control debian/copyright \ debian/dirs debian/docs debian/menu debian/rules diff -r 0098dae654a5 -r 7d7d8299610d acinclude.m4 --- a/acinclude.m4 Thu Jun 26 01:04:12 2003 +0000 +++ b/acinclude.m4 Thu Jun 26 01:21:53 2003 +0000 @@ -113,3 +113,19 @@ esac]) fi ]) + +# serial 1 + +# This function is derived from +# http://savannah.gnu.org/cgi-bin/viewcvs/gcc/gcc/libjava/configure.in?rev=1.142.2.7&content-type=text/vnd.viewcvs-markup + +AC_DEFUN(AC_TYPE_SOCKLEN_T, + [AC_MSG_CHECKING([for socklen_t in sys/socket.h]) + AC_TRY_COMPILE([#define _POSIX_PII_SOCKET + #include + #include ], [socklen_t x = 5;], + [AC_MSG_RESULT(yes)], + [AC_DEFINE(socklen_t,int) + AC_MSG_RESULT(no)]) + ]) + diff -r 0098dae654a5 -r 7d7d8299610d configure.in --- a/configure.in Thu Jun 26 01:04:12 2003 +0000 +++ b/configure.in Thu Jun 26 01:21:53 2003 +0000 @@ -52,6 +52,7 @@ AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h libutil.h limits.h malloc.h pty.h strings.h sys/ioctl.h sys/time.h unistd.h) +AC_TYPE_SOCKLEN_T AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_SIZE_T @@ -261,4 +262,4 @@ AM_GNU_GETTEXT -AC_OUTPUT(Makefile docs/Makefile docs/sample.gftp/Makefile lib/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile gftp.spec) +AC_OUTPUT(Makefile docs/Makefile docs/sample.gftp/Makefile lib/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile gftp.spec intl/Makefile po/Makefile.in intl/Makefile po/Makefile.in) diff -r 0098dae654a5 -r 7d7d8299610d lib/gftp.h --- a/lib/gftp.h Thu Jun 26 01:04:12 2003 +0000 +++ b/lib/gftp.h Thu Jun 26 01:21:53 2003 +0000 @@ -103,10 +103,6 @@ #define GFTP_GET_AI_FAMILY(request) AF_INET #endif -#ifndef HAVE_SOCKLEN_T -typedef int socklen_t; -#endif - /* We need the major() and minor() macros in the user interface. If they aren't defined by the system, we'll just define them here. */ #ifndef major