diff options
author | Jeremy Allison <jra@samba.org> | 2012-04-09 15:31:23 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-04-10 04:07:11 +0200 |
commit | d425a4cd3dded853aaefbca8873c95845933d383 (patch) | |
tree | e56ecaface7633a8ef90b0855302023a6d5dfc30 /lib/replace/libreplace.m4 | |
parent | 800a9d8bc3d6805dd297e65c8d32efc74a1329b3 (diff) | |
download | samba-d425a4cd3dded853aaefbca8873c95845933d383.tar.gz samba-d425a4cd3dded853aaefbca8873c95845933d383.tar.bz2 samba-d425a4cd3dded853aaefbca8873c95845933d383.zip |
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@samba.org>
Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib/replace/libreplace.m4')
-rw-r--r-- | lib/replace/libreplace.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4 index 72de91799c..df3d4c8fca 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 |