wfabuild: fix the -errwarn compile flag test
authorBjörn Jacke <bj@sernet.de>
Tue, 30 Oct 2012 10:32:52 +0000 (11:32 +0100)
committerBjoern Jacke <bj@sernet.de>
Tue, 30 Oct 2012 12:18:50 +0000 (13:18 +0100)
as in the autoconf build this must be "-errwarn=%all"

lib/replace/wscript
lib/util/util_net.c

index c21a8f87e9de77db14abda77000fd95547d61ed3..7c2d5191d79157e61d377e455f676600d043731d 100644 (file)
@@ -54,7 +54,7 @@ struct foo bar = { .y = 'X', .x = 1 };
             break
 
     # Try to find the right extra flags for -Werror behaviour
-    for f in ["-Werror", "-w2", "-errwarn"]:
+    for f in ["-Werror", "-w2", "-errwarn=%all"]:
         if conf.CHECK_CFLAGS([f], '''
 '''):
             if not 'WERROR_CFLAGS' in conf.env:
index 83afda4c78e95a060c93bf3233f982c00bf720c4..536c0a4e2b7f1d7599127cd97cfaa341d632348a 100644 (file)
@@ -817,6 +817,9 @@ static const smb_socket_option socket_options[] = {
 #ifdef TCP_QUICKACK
   {"TCP_QUICKACK", IPPROTO_TCP, TCP_QUICKACK, 0, OPT_BOOL},
 #endif
+#ifdef TCP_FASTOPEN
+  {"TCP_FASTOPEN", IPPROTO_TCP, TCP_FASTOPEN, 0, OPT_BOOL},
+#endif
 #ifdef TCP_NODELAYACK
   {"TCP_NODELAYACK", IPPROTO_TCP, TCP_NODELAYACK, 0, OPT_BOOL},
 #endif