* [commit] Check for socklen_t
@ 2005-06-13 21:34 Mark Kettenis
2005-06-14 3:34 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2005-06-13 21:34 UTC (permalink / raw)
To: gdb-patches
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 <kettenis@gnu.org>
* 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 <signal.h>
#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 <sys/types.h>
+#include <sys/socket.h>
+])
# ------------------------------------- #
# Checks for compiler characteristics. #
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [commit] Check for socklen_t
2005-06-13 21:34 [commit] Check for socklen_t Mark Kettenis
@ 2005-06-14 3:34 ` Eli Zaretskii
2005-06-14 21:34 ` Mark Kettenis
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2005-06-14 3:34 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb-patches
> Date: Mon, 13 Jun 2005 23:34:10 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
>
> 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 <kettenis@gnu.org>
>
> * ser-tcp.c: Tewak comment.
^^^^^
A typo.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [commit] Check for socklen_t
2005-06-14 3:34 ` Eli Zaretskii
@ 2005-06-14 21:34 ` Mark Kettenis
0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2005-06-14 21:34 UTC (permalink / raw)
To: eliz; +Cc: gdb-patches
Date: Tue, 14 Jun 2005 06:34:49 +0200
From: Eli Zaretskii <eliz@gnu.org>
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * ser-tcp.c: Tewak comment.
^^^^^
A typo.
Oops. Fixed now. Thanks!
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-14 21:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-13 21:34 [commit] Check for socklen_t Mark Kettenis
2005-06-14 3:34 ` Eli Zaretskii
2005-06-14 21:34 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox