slirp: Avoid redefining MAX_TCPOPTLEN
authorAndreas Färber <andreas.faerber@web.de>
Mon, 28 May 2012 17:52:35 +0000 (19:52 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 28 May 2012 20:44:27 +0000 (22:44 +0200)
MAX_TCPOPTLEN is being defined as 32. Darwin already has it as 40,
causing a warning. The value is only used to declare an array,
into which currently 4 bytes are written at most.

Therefore always override MAX_TCPOPTLEN for now.

Suggested-by: Jan Kiszka <jan.kiszka@web.de>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
slirp/tcp_output.c

index 779314b..8aa3d90 100644 (file)
@@ -47,6 +47,7 @@ static const u_char  tcp_outflags[TCP_NSTATES] = {
 };
 
 
+#undef MAX_TCPOPTLEN
 #define MAX_TCPOPTLEN  32      /* max # bytes that go in options */
 
 /*