dev_t is defined by POSIX to be a number, and all supported systems
define major() and minor() at one place or the other, thus this commit
removes the workarounds.
DOVECOT_IOVEC
-DOVECOT_TYPEOF_DEV_T
-
DOVECOT_RLIMIT_AS
DOVECOT_RLIMIT_NPROC
DOVECOT_RLIMIT_CORE
+++ /dev/null
-dnl * is dev_t an integer or something else?
-AC_DEFUN([DOVECOT_TYPEOF_DEV_T], [
- AC_CACHE_CHECK([whether dev_t is struct],i_cv_dev_t_struct,[
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- #include <sys/types.h>
- struct test { dev_t a; };
- static struct test t = { 0 };
- ]],
- [[ ]])], [
- i_cv_dev_t_struct=no
- ],[
- i_cv_dev_t_struct=yes
- ])
- ])
- AS_IF([test $i_cv_dev_t_struct = yes], [
- AC_DEFINE(DEV_T_STRUCT,, [Define if your dev_t is a structure instead of integer type])
- ])
-])
# undef WORDS_BIGENDIAN
#endif
-/*
- *
- *
- *
- * POSIX.1-2001
- *
- *
- *
- */
#ifdef HAVE_SYS_SYSMACROS_H
# include <sys/sysmacros.h>
-# ifdef HAVE_SYS_MKDEV_H
-# include <sys/mkdev.h> /* UnixWare */
-# endif
-# define CMP_DEV_T(a, b) (major(a) == major(b) && minor(a) == minor(b))
-#elif !defined (DEV_T_STRUCT)
-# define CMP_DEV_T(a, b) ((a) == (b))
-#else
-# error I do not know how to compare dev_t
#endif
+#define CMP_DEV_T(a, b) (major(a) == major(b) && minor(a) == minor(b))
#ifdef HAVE_STAT_XTIM
# define HAVE_ST_NSECS