summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-20 14:35:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:14 -0500
commit48fac823d2cfd4c82c6a4ac232dfd15b51ac0616 (patch)
tree2d66c44b9796b404240c9b33567a3f90d5f70126 /source4/lib
parent02ac968a2651a2093fe8bb4edb049d80231cdadb (diff)
downloadsamba-48fac823d2cfd4c82c6a4ac232dfd15b51ac0616.tar.gz
samba-48fac823d2cfd4c82c6a4ac232dfd15b51ac0616.tar.bz2
samba-48fac823d2cfd4c82c6a4ac232dfd15b51ac0616.zip
r17157: bail out if sizeof(size_t) < sizeof(void *)
metze (This used to be commit f94198c2a8afd79b4c156773d14de691fd8bf0d5)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/talloc/config.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/talloc/config.m4 b/source4/lib/talloc/config.m4
index bcac5770ce..bbb2b35af8 100644
--- a/source4/lib/talloc/config.m4
+++ b/source4/lib/talloc/config.m4
@@ -12,3 +12,7 @@ AC_CHECK_SIZEOF(off_t,cross)
AC_CHECK_SIZEOF(size_t,cross)
AC_CHECK_SIZEOF(ssize_t,cross)
AC_CHECK_SIZEOF(void *,cross)
+
+if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
+ AC_ERROR([sizeof(size_t) < sizeof(void *)])
+fi