summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/external/sizes.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/src/external/sizes.m4 b/src/external/sizes.m4
index 53df61de..ccbb69ce 100644
--- a/src/external/sizes.m4
+++ b/src/external/sizes.m4
@@ -37,8 +37,11 @@ AC_CHECK_SIZEOF(off_t)
AC_CHECK_SIZEOF(size_t)
AC_CHECK_SIZEOF(ssize_t)
-AC_CHECK_TYPE(intptr_t, long long)
+
+AC_CHECK_TYPES([intptr_t],
+ [],
+ [AC_DEFINE_UNQUOTED([intptr_t], [long long],
+ [Define to `long long'
+ if <stdint.h> does not define.])])
AC_CHECK_TYPE(uintptr_t, unsigned long long)
AC_CHECK_TYPE(ptrdiff_t, unsigned long long)
-
-