aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-06-13 21:32:01 +0000
committerMark Kettenis <kettenis@gnu.org>2005-06-13 21:32:01 +0000
commitf9f87d2ca62abfc2102be8574167cb6aa6928a9e (patch)
tree086f18a2fce845c903ec18f35cf6afabbbea6467 /gdb/ser-tcp.c
parent43259571aca0944565543698d044240ecfef4689 (diff)
downloadgdb-f9f87d2ca62abfc2102be8574167cb6aa6928a9e.zip
gdb-f9f87d2ca62abfc2102be8574167cb6aa6928a9e.tar.gz
gdb-f9f87d2ca62abfc2102be8574167cb6aa6928a9e.tar.bz2
* ser-tcp.c: Tewak comment.
[!HAVE_SOCKLEN_T]: Typedef socklen_t. * configure.ac: Add check for socklen_t. * configure, config.in: Regenerate.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index 6b19c31..5b0b431 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -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);