summaryrefslogtreecommitdiffstats
path: root/m4/off_t_max.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/off_t_max.m4')
-rw-r--r--m4/off_t_max.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/off_t_max.m4 b/m4/off_t_max.m4
new file mode 100644
index 0000000..4ec6d08
--- /dev/null
+++ b/m4/off_t_max.m4
@@ -0,0 +1,13 @@
+AC_DEFUN([DOVECOT_OFF_T_MAX], [
+ dnl * Do we have OFF_T_MAX?
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <limits.h>
+ #include <sys/types.h>
+ ]], [[
+ off_t i = OFF_T_MAX;
+ ]])],[
+ :
+ ],[
+ AC_DEFINE_UNQUOTED(OFF_T_MAX, $offt_max, [Maximum value of off_t])
+ ])
+])