]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Fix build warning on Windows.
authorths <ths>
Sat, 23 Dec 2006 00:03:15 +0000 (00:03 +0000)
committerths <ths>
Sat, 23 Dec 2006 00:03:15 +0000 (00:03 +0000)
slirp/tcp.h

index 0cd3ab3a49e25cc5d8fa5835d3eca76e607ec70e..229293c4989ab16bd44397cde6ca495dd2634c83 100644 (file)
@@ -111,8 +111,14 @@ struct tcphdr {
 
 /*
  * User-settable options (used with setsockopt).
+ *
+ * We don't use the system headers on unix because we have conflicting
+ * local structures. We can't avoid the system definitions on Windows,
+ * so we undefine them.
  */
+#undef TCP_NODELAY
 #define        TCP_NODELAY     0x01    /* don't delay send to coalesce packets */
+#undef TCP_MAXSEG
 /* #define     TCP_MAXSEG      0x02 */ /* set maximum segment size */
 
 /*