From: Matt Birkholz Date: Sun, 19 Jul 2015 20:58:50 +0000 (-0700) Subject: Make uxsock.o state thread-local. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e6e5e5f99244c712497a81015e0937f328d26014;p=mit-scheme.git Make uxsock.o state thread-local. Make the storage class of "address" auto. --- diff --git a/src/microcode/uxsock.c b/src/microcode/uxsock.c index 6c2effb1f..c7a64c1b1 100644 --- a/src/microcode/uxsock.c +++ b/src/microcode/uxsock.c @@ -24,6 +24,7 @@ USA. */ +#include "scheme.h" #include "ux.h" #include "osio.h" @@ -31,7 +32,6 @@ USA. #include "uxsock.h" #include "uxio.h" -#include "prims.h" static void do_connect (int, struct sockaddr *, socklen_t); @@ -296,7 +296,7 @@ OS_server_connection_accept (Tchannel channel, void * peer_host, unsigned int * peer_port) { - static struct sockaddr_in address; + struct sockaddr_in address; socklen_t address_length = (sizeof (struct sockaddr_in)); int s; memset((&address), 0, (sizeof (address)));