lib: Move msghdr to lib/util/
authorVolker Lendecke <vl@samba.org>
Sat, 14 May 2016 07:45:49 +0000 (09:45 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 7 Jun 2016 12:34:10 +0000 (14:34 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
lib/util/msghdr.c [moved from source3/lib/msghdr.c with 99% similarity]
lib/util/msghdr.h [moved from source3/lib/msghdr.h with 100% similarity]
lib/util/wscript_build
source3/lib/unix_msg/unix_msg.c
source3/modules/vfs_aio_fork.c
source3/wscript_build

similarity index 99%
rename from source3/lib/msghdr.c
rename to lib/util/msghdr.c
index 2aa2f2e05164a7b98d19e44502db245ab41a2420..1aeadfc8d4ddbb98a068c0f7870cc283d0c9d8ef 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 #include "replace.h"
-#include "lib/msghdr.h"
+#include "lib/util/msghdr.h"
 #include "lib/util/iov_buf.h"
 #include <sys/socket.h>
 
similarity index 100%
rename from source3/lib/msghdr.h
rename to lib/util/msghdr.h
index 713946d27a5d40afbe95af64726977ee8711ee69..d8c9f221abc90992194bea4183e10ed69083b16d 100755 (executable)
@@ -188,6 +188,12 @@ else:
                       local_include=False,
                       private_library=True)
 
+    bld.SAMBA_LIBRARY('msghdr',
+                      source='msghdr.c',
+                      deps='replace iov_buf',
+                      local_include=False,
+                      private_library=True)
+
     bld.SAMBA3_LIBRARY('sys_rw',
                        source='sys_rw.c sys_rw_data.c',
                        deps='replace iov_buf',
index bcfef2852d9dc7c5578ad9f7e17c30f8e7ca3fcb..aed1f7560b59c2a46caafa01953ee8f58dfc9158 100644 (file)
@@ -24,7 +24,7 @@
 #include "lib/util/dlinklist.h"
 #include "pthreadpool/pthreadpool.h"
 #include "lib/util/iov_buf.h"
-#include "lib/msghdr.h"
+#include "lib/util/msghdr.h"
 #include <fcntl.h>
 
 /*
index 7d06b984009cccd7b86b4485a6b729fb1b2cee25..e9ba4a3791dfd00eaa9ef06831142bf56ed378fa 100644 (file)
@@ -28,7 +28,7 @@
 #include "lib/util/tevent_unix.h"
 #include "lib/util/sys_rw.h"
 #include "lib/util/sys_rw_data.h"
-#include "lib/msghdr.h"
+#include "lib/util/msghdr.h"
 #include "smbprofile.h"
 
 #if !defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL) && !defined(HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS)
index ed2424d08e1e41c740e844ed0bed55725bdd1208..e348e653815eec912785b2d60ef5471547f9ad26 100755 (executable)
@@ -783,11 +783,6 @@ bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
                     source='lib/util_tdb.c',
                     deps='talloc samba3-util')
 
-bld.SAMBA3_LIBRARY('msghdr',
-                   source='lib/msghdr.c',
-                   deps='replace iov_buf',
-                   private_library=True)
-
 bld.SAMBA3_LIBRARY('samba3-util',
                    source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
                    deps='samba-util charset',