summaryrefslogtreecommitdiffstats
path: root/m4/off_t_max.m4
blob: 4ec6d08b4e72dccebc7e3a69e9fc3d40156d4cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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])
  ])
])