From 5827dde8cb9a04cb792244f4c4b8bb66b26fcaee Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 17 Oct 2000 17:16:17 +0000 Subject: [PATCH] FreeBSD doesn't define socklen_t; add conditional definition. --- v7/src/microcode/uxsock.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/v7/src/microcode/uxsock.c b/v7/src/microcode/uxsock.c index ba05e9954..3d720fadf 100644 --- a/v7/src/microcode/uxsock.c +++ b/v7/src/microcode/uxsock.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: uxsock.c,v 1.24 2000/10/01 02:18:55 cph Exp $ +$Id: uxsock.c,v 1.25 2000/10/17 17:16:17 cph Exp $ Copyright (c) 1990-2000 Massachusetts Institute of Technology @@ -51,6 +51,13 @@ extern struct hostent * EXFUN (gethostbyname, (CONST char *)); extern char * EXFUN (strncpy, (char *, CONST char *, size_t)); #endif +#ifdef __linux +#define HAVE_SOCKLEN_T +#endif +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + static void do_connect (int, struct sockaddr *, socklen_t); Tchannel -- 2.25.1