#ifndef QUOTA_FS_H #define QUOTA_FS_H #if defined (HAVE_STRUCT_DQBLK_CURBLOCKS) || \ defined (HAVE_STRUCT_DQBLK_CURSPACE) # define HAVE_FS_QUOTA #endif #ifdef HAVE_QUOTA_OPEN /* absolute path to avoid confusion with ./quota.h */ # include "/usr/include/quota.h" /* NetBSD with libquota */ #endif #ifdef HAVE_SYS_QUOTA_H # include /* Linux, HP-UX */ #elif defined(HAVE_SYS_FS_UFS_QUOTA_H) # include /* Solaris */ #elif defined(HAVE_UFS_UFS_QUOTA_H) # include /* BSDs */ #elif defined(HAVE_JFS_QUOTA_H) # include /* AIX */ # ifdef HAVE_SYS_FS_QUOTA_COMMON_H # include /* quotactl() */ # endif #else # undef HAVE_FS_QUOTA #endif #ifdef HAVE_QUOTACTL # ifdef HAVE_SYS_QUOTA_H # ifndef _HPUX_SOURCE # define FS_QUOTA_LINUX # else # define FS_QUOTA_HPUX # endif # else # define FS_QUOTA_BSDAIX # endif #elif defined (HAVE_Q_QUOTACTL) # define FS_QUOTA_SOLARIS #else # undef HAVE_FS_QUOTA #endif #ifdef HAVE_QUOTA_OPEN /* NetBSD with libquota */ # define FS_QUOTA_NETBSD # define HAVE_FS_QUOTA # undef FS_QUOTA_LINUX /* obtained because we also have */ #endif #endif