summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-11-24 03:15:22 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2011-11-24 03:15:22 (GMT)
commitfc2e0ad6ea067fa80afd28840451e7183fccb403 (patch)
treea5009234c2fe8b8655fb6af3aa5b7dd8ef822fd5
parent389b51e0c4d920e7f8a1e2fae4d33f95a7d05208 (diff)
downloadipxrelay-fc2e0ad6ea067fa80afd28840451e7183fccb403.zip
ipxrelay-fc2e0ad6ea067fa80afd28840451e7183fccb403.tar.gz
ipxrelay-fc2e0ad6ea067fa80afd28840451e7183fccb403.tar.bz2
ipxrelay-fc2e0ad6ea067fa80afd28840451e7183fccb403.tar.xz
Reintroduce socklen_tHEADmaster
It really should be socklen_t; this is starting to smell a lot like autoconf :( Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--ipxrelay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipxrelay.c b/ipxrelay.c
index 38695fc..b80dfde 100644
--- a/ipxrelay.c
+++ b/ipxrelay.c
@@ -40,6 +40,7 @@
# include <winsock2.h>
# include <ws2tcpip.h>
# include "lib/sysexits.h"
+typedef int socklen_t;
#else
# include <sysexits.h>
# include <unistd.h>
@@ -293,7 +294,7 @@ static int ipx_relay_server(int fd)
char buf[65536];
} pkt;
struct sockaddr from;
- int fromlen;
+ socklen_t fromlen;
int len, hlen;
struct ipx_client *s, *d;