projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df35041
)
FreeBSD doesn't define socklen_t; add conditional definition.
author
Chris Hanson
<org/chris-hanson/cph>
Tue, 17 Oct 2000 17:16:17 +0000
(17:16 +0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Tue, 17 Oct 2000 17:16:17 +0000
(17:16 +0000)
v7/src/microcode/uxsock.c
patch
|
blob
|
history
diff --git
a/v7/src/microcode/uxsock.c
b/v7/src/microcode/uxsock.c
index ba05e995496540a55dbd9d8d04ed8b4858557374..3d720fadf33f33e69a9e15906e2f94a5dcde2458 100644
(file)
--- a/
v7/src/microcode/uxsock.c
+++ b/
v7/src/microcode/uxsock.c
@@
-1,6
+1,6
@@
/* -*-C-*-
-$Id: uxsock.c,v 1.2
4 2000/10/01 02:18:55
cph Exp $
+$Id: uxsock.c,v 1.2
5 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);
\f
Tchannel