From 747407e3c33d657ba39f0edab18ff8fa27103c5b Mon Sep 17 00:00:00 2001 From: srittau Date: Mon, 15 Dec 2003 04:59:45 +0000 Subject: [PATCH] Check for sys/quota.h and include it if and only if this is defined in unix.h. --- etc/afpd/unix.h | 10 +++------- macros/quota-check.m4 | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/etc/afpd/unix.h b/etc/afpd/unix.h index 70bdb16b..a15cee23 100644 --- a/etc/afpd/unix.h +++ b/etc/afpd/unix.h @@ -1,5 +1,5 @@ /* - * $Id: unix.h,v 1.14 2003-12-15 04:49:56 srittau Exp $ + * $Id: unix.h,v 1.15 2003-12-15 04:59:45 srittau Exp $ */ #ifndef AFPD_UNIX_H @@ -58,9 +58,9 @@ typedef int mode_t; #define dqb_btimelimit dqb_btime #endif /* ! __svr4__ || HAVE_DQB_BTIMELIMIT */ -#if defined(linux) || defined(ultrix) || defined(HAVE_QUOTA_H) +#if defined(HAVE_SYS_QUOTA_H) #include -#endif /* linux || ultrix || HAVE_QUOTA_H */ +#endif /* HAVE_SYS_QUOTA_H */ #ifdef __svr4__ #include @@ -74,10 +74,6 @@ typedef int mode_t; #include #endif /* HAVE_UFS_QUOTA_H */ -#ifdef _IBMR2 -#include -#endif /* _IBMR2 */ - #include #include #include diff --git a/macros/quota-check.m4 b/macros/quota-check.m4 index 3acff3a9..ae9ffa57 100644 --- a/macros/quota-check.m4 +++ b/macros/quota-check.m4 @@ -1,9 +1,9 @@ -dnl $Id: quota-check.m4,v 1.2 2003-12-15 04:55:20 srittau Exp $ +dnl $Id: quota-check.m4,v 1.3 2003-12-15 04:59:45 srittau Exp $ dnl Autoconf macro to check for quota support dnl FIXME: This is in now way complete. AC_DEFUN([AC_CHECK_QUOTA], [ - AC_CHECK_HEADERS(ufs/quota.h) + AC_CHECK_HEADERS(sys/quota.h ufs/quota.h) QUOTA_LIBS= AC_CHECK_LIB(rpcsvc, main, [QUOTA_LIBS=-lrpcsvc]) -- 2.39.2