From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22084 invoked by alias); 13 Jun 2005 21:34:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22062 invoked by uid 22791); 13 Jun 2005 21:34:17 -0000 Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 13 Jun 2005 21:34:17 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id j5DLYFKK010828 for ; Mon, 13 Jun 2005 23:34:15 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id j5DLYFYY020878 for ; Mon, 13 Jun 2005 23:34:15 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id j5DLYAFA008228; Mon, 13 Jun 2005 23:34:10 +0200 (CEST) Date: Mon, 13 Jun 2005 21:34:00 -0000 Message-Id: <200506132134.j5DLYAFA008228@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [commit] Check for socklen_t X-SW-Source: 2005-06/txt/msg00167.txt.bz2 Without this patch building GDB fails on at least Ultrix 4.0 and HP-UX 10.20. Committed as obvious. Mark Index: ChangeLog from Mark Kettenis * ser-tcp.c: Tewak comment. [!HAVE_SOCKLEN_T]: Typedef socklen_t. * configure.ac: Add check for socklen_t. * configure, config.in: Regenerate. Index: ser-tcp.c =================================================================== RCS file: /cvs/src/src/gdb/ser-tcp.c,v retrieving revision 1.22 diff -u -p -r1.22 ser-tcp.c --- ser-tcp.c 26 May 2005 20:48:58 -0000 1.22 +++ ser-tcp.c 13 Jun 2005 21:28:51 -0000 @@ -1,5 +1,6 @@ -/* Serial interface for raw TCP connections on Un*x like systems - Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2001 +/* Serial interface for raw TCP connections on Un*x like systems. + + Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2001, 2005 Free Software Foundation, Inc. This file is part of GDB. @@ -51,6 +52,10 @@ #include #include "gdb_string.h" +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + static int net_open (struct serial *scb, const char *name); static void net_close (struct serial *scb); void _initialize_ser_tcp (void); Index: configure.ac =================================================================== RCS file: /cvs/src/src/gdb/configure.ac,v retrieving revision 1.20 diff -u -p -r1.20 configure.ac --- configure.ac 20 May 2005 18:17:47 -0000 1.20 +++ configure.ac 13 Jun 2005 21:28:51 -0000 @@ -432,6 +432,10 @@ AC_CHECK_MEMBERS([struct stat.st_blksize # ------------------ # AC_TYPE_SIGNAL +AC_CHECK_TYPES(socklen_t, [], [], +[#include +#include +]) # ------------------------------------- # # Checks for compiler characteristics. #