/*
- * $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
#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 <sys/quota.h>
-#endif /* linux || ultrix || HAVE_QUOTA_H */
+#endif /* HAVE_SYS_QUOTA_H */
#ifdef __svr4__
#include <sys/fs/ufs_quota.h>
#include <ufs/quota.h>
#endif /* HAVE_UFS_QUOTA_H */
-#ifdef _IBMR2
-#include <jfs/quota.h>
-#endif /* _IBMR2 */
-
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
-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])