summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-09-16 22:39:01 +0200
committerVolker Lendecke <vl@samba.org>2014-09-18 20:36:11 +0200
commit32d190a0209fb3202c71afb193b38f573b545276 (patch)
treef2a972b868023c0764153d9da96ac2f0c71c1723 /lib
parent25df58a853d8d3ecab2705687453193cb676976c (diff)
downloadsamba-32d190a0209fb3202c71afb193b38f573b545276.tar.gz
lib: Make set_blocking() available independently
async_connect_send() needs this, and I don't want to pull in samba-util just for this Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/async_req/wscript_build2
-rwxr-xr-xlib/util/wscript_build9
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/async_req/wscript_build b/lib/async_req/wscript_build
index 0de58e478b8..7802935f682 100644
--- a/lib/async_req/wscript_build
+++ b/lib/async_req/wscript_build
@@ -4,6 +4,6 @@
bld.SAMBA_SUBSYSTEM('LIBASYNC_REQ',
source='async_sock.c',
public_deps='talloc tevent',
- deps='tevent-util'
+ deps='tevent-util socket-blocking'
)
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index ca0386a48b3..97920135f29 100755
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -26,16 +26,21 @@ bld.SAMBA_LIBRARY('samba-debug',
local_include=False,
private_library=True)
+bld.SAMBA_LIBRARY('socket-blocking',
+ source='blocking.c',
+ local_include=False,
+ private_library=True)
+
bld.SAMBA_LIBRARY('samba-util',
source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
util_file.c time.c rbtree.c rfc1738.c select.c getpass.c
- genrand.c fsusage.c blocking.c become_daemon.c
+ genrand.c fsusage.c become_daemon.c
signal.c system.c params.c util.c util_id.c util_net.c
util_strlist.c util_paths.c idtree.c fault.c base64.c
util_str.c util_str_common.c substitute.c ms_fnmatch.c
server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
tevent_debug.c util_process.c memcache.c''',
- deps='DYNCONFIG time-basic close-low-fd samba-debug tini tiniparser',
+ deps='DYNCONFIG time-basic close-low-fd samba-debug tini tiniparser socket-blocking',
public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h',
header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],