openbsd-ports/emulators/simh/patches/patch-sim_sock_c

13 lines
431 B
Plaintext

$OpenBSD: patch-sim_sock_c,v 1.4 2003/02/02 20:19:56 fgsch Exp $
--- sim_sock.c.orig Thu Jan 2 12:27:10 2003
+++ sim_sock.c Sun Feb 2 16:37:44 2003
@@ -178,7 +178,7 @@ return newsock; /* got it! */
SOCKET sim_accept_conn (SOCKET master, uint32 *ipaddr)
{
int32 sta, err;
-#if defined (macintosh)
+#if defined (macintosh) || defined (USE_SOCKLEN_T)
socklen_t size;
#elif defined (WIN32) || defined (__EMX__)
int size;