diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/plugins/quota/quota-fs.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/plugins/quota/quota-fs.h')
-rw-r--r-- | src/plugins/quota/quota-fs.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/plugins/quota/quota-fs.h b/src/plugins/quota/quota-fs.h new file mode 100644 index 0000000..8508cdf --- /dev/null +++ b/src/plugins/quota/quota-fs.h @@ -0,0 +1,51 @@ +#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 <sys/quota.h> /* Linux, HP-UX */ +#elif defined(HAVE_SYS_FS_UFS_QUOTA_H) +# include <sys/fs/ufs_quota.h> /* Solaris */ +#elif defined(HAVE_UFS_UFS_QUOTA_H) +# include <ufs/ufs/quota.h> /* BSDs */ +#elif defined(HAVE_JFS_QUOTA_H) +# include <jfs/quota.h> /* AIX */ +# ifdef HAVE_SYS_FS_QUOTA_COMMON_H +# include <sys/fs/quota_common.h> /* 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 <sys/quota.h> */ +#endif + +#endif |