From e6e5e5f99244c712497a81015e0937f328d26014 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Jul 2015 13:58:50 -0700 Subject: [PATCH] Make uxsock.o state thread-local. Make the storage class of "address" auto. --- src/microcode/uxsock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); -- 2.25.1