[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Mon Apr 9 20:08:03 MDT 2012


The branch, master has been updated
       via  d425a4c On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.
      from  800a9d8 wafsamba/bundled: Fix typo in tuplize_version.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d425a4cd3dded853aaefbca8873c95845933d383
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Apr 9 15:31:23 2012 -0700

    On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.
    
    Autobuild-User: Jeremy Allison <jra at samba.org>
    Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 lib/replace/libreplace.m4 |   12 ++++++++++++
 lib/replace/replace.h     |    8 --------
 lib/replace/wscript       |    2 ++
 source3/configure.in      |    2 --
 source3/wscript           |    1 -
 5 files changed, 14 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
index 72de917..df3d4c8 100644
--- a/lib/replace/libreplace.m4
+++ b/lib/replace/libreplace.m4
@@ -60,6 +60,18 @@ AC_STRUCT_ST_RDEV
 AC_CHECK_TYPE(ino_t,unsigned)
 AC_CHECK_TYPE(loff_t,off_t)
 AC_CHECK_TYPE(offset_t,loff_t)
+AC_CHECK_TYPE([blksize_t],,
+                [AC_DEFINE_UNQUOTED([blksize_t], [long],
+                                    [Define to `long' if
+                                     <sys/stat.h> does not define it.])],
+		[],
+		[[#include <sys/stat.h>]])
+AC_CHECK_TYPE([blkcnt_t],,
+                [AC_DEFINE_UNQUOTED([blkcnt_t], [long],
+                                    [Define to `long' if
+                                     <sys/stat.h> does not define it.])],
+		[],
+		[[#include <sys/stat.h>]])
 
 AC_FUNC_MEMCMP
 
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index debd4da..776da8a 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -841,12 +841,4 @@ typedef long useconds_t;
 int usleep(useconds_t);
 #endif
 
-#ifndef HAVE_BLKSIZE_T
-typedef long blksize_t;
-#endif
-
-#ifndef HAVE_BLKCNT_T
-typedef long blkcnt_t;
-#endif
-
 #endif /* _LIBREPLACE_REPLACE_H */
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 025dda4..d7b0634 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -91,6 +91,8 @@ def configure(conf):
     conf.CHECK_TYPE('offset_t', 'loff_t')
     conf.CHECK_TYPE('volatile int', define='HAVE_VOLATILE')
     conf.CHECK_TYPE('uint_t', 'unsigned int')
+    conf.CHECK_TYPE('blksize_t', 'long', headers='sys/types.h sys/stat.h unistd.h')
+    conf.CHECK_TYPE('blkcnt_t', 'long', headers='sys/types.h sys/stat.h unistd.h')
 
     conf.CHECK_SIZEOF('bool char int "long long" long short size_t ssize_t')
     conf.CHECK_SIZEOF('int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t')
diff --git a/source3/configure.in b/source3/configure.in
index bc8afc0..bf777a1 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2934,8 +2934,6 @@ if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
     AC_DEFINE(HAVE_STAT_ST_BLOCKS,1,[Whether the stat struct has a st_block property])
 fi
 
-AC_CHECK_TYPES([blksize_t, blkcnt_t], [], [], [[#include <sys/stat.h>]])
-
 AC_CACHE_CHECK([for 32 bit blkcnt_t],samba_cv_SIZEOF_BLKCNT_T_4,[
 AC_TRY_RUN([
 #if defined(HAVE_UNISTD_H)
diff --git a/source3/wscript b/source3/wscript
index 3c8df0a..24924cc 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -166,7 +166,6 @@ main() {
         msg="Checking for krenel share modes")
 
     # Check for various members of the stat structure
-    conf.CHECK_TYPES('blksize_t blkcnt_t')
     conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_blocks', define='HAVE_STAT_ST_BLOCKS',
                                 headers='sys/stat.h')
     conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_blksize', define='HAVE_STAT_ST_BLKSIZE',


-- 
Samba Shared Repository


More information about the samba-cvs mailing list