From: Chris Hanson Date: Tue, 17 Oct 2000 17:16:17 +0000 (+0000) Subject: FreeBSD doesn't define socklen_t; add conditional definition. X-Git-Tag: 20090517-FFI~3247 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=5827dde8cb9a04cb792244f4c4b8bb66b26fcaee;p=mit-scheme.git FreeBSD doesn't define socklen_t; add conditional definition. --- 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