Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3932:b079a386a2f7 HEAD
Include sys/mkdev.h with UnixWare for major() and minor()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 22 Jan 2006 18:10:52 +0200 |
parents | d37797a229c3 |
children | aebf37667655 |
files | configure.in src/lib/compat.h |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Sun Jan 22 18:09:49 2006 +0200 +++ b/configure.in Sun Jan 22 18:10:52 2006 +0200 @@ -17,7 +17,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h \ sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \ sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h mntent.h sys/mnttab.h \ - sys/event.h sys/time.h) + sys/event.h sys/time.h sys/mkdev.h) AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable IPv6 support (default)],
--- a/src/lib/compat.h Sun Jan 22 18:09:49 2006 +0200 +++ b/src/lib/compat.h Sun Jan 22 18:10:52 2006 +0200 @@ -53,6 +53,9 @@ #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))