summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 05:49:36 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 05:49:36 +0100
commitc537f7a91449728bbffdda628877f72db2d4e96b (patch)
treec8589d1c9a7dd0bd62ff8344dd8f523033cc7e37 /source4/lib/socket
parent29177203e5da4cb42e0c5bc2f2981d6cffbe042c (diff)
downloadsamba-c537f7a91449728bbffdda628877f72db2d4e96b.tar.gz
samba-c537f7a91449728bbffdda628877f72db2d4e96b.tar.bz2
samba-c537f7a91449728bbffdda628877f72db2d4e96b.zip
Fix the build.
Diffstat (limited to 'source4/lib/socket')
-rw-r--r--source4/lib/socket/socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c
index 3be841311a..eff2c0a743 100644
--- a/source4/lib/socket/socket.c
+++ b/source4/lib/socket/socket.c
@@ -25,8 +25,6 @@
#include "system/network.h"
#include "param/param.h"
-bool testnonblock = false;
-
/*
auto-close sockets on free
*/
@@ -72,7 +70,7 @@ _PUBLIC_ NTSTATUS socket_create_with_ops(TALLOC_CTX *mem_ctx, const struct socke
if (!(flags & SOCKET_FLAG_BLOCK) &&
type == SOCKET_TYPE_STREAM &&
- testnonblock) {
+ lp_parm_bool(global_loadparm, NULL, "socket", "testnonblock", false)) {
(*new_sock)->flags |= SOCKET_FLAG_TESTNONBLOCK;
}