From 413a1c4098870363638aa43c7322f6ab22c52d7d Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 17 Sep 2008 21:59:31 +0000 Subject: [PATCH] fix linux tmpfs (make it compile only) --- conf/autofs/autofs_linux.h | 1 + include/am_compat.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/conf/autofs/autofs_linux.h b/conf/autofs/autofs_linux.h index 35f721d..22f5f51 100644 --- a/conf/autofs/autofs_linux.h +++ b/conf/autofs/autofs_linux.h @@ -104,4 +104,5 @@ union autofs_packet_union { #define AUTOFS_PCFS_FS_FLAGS (FS_UBACKGROUND | FS_AMQINFO | FS_ON_AUTOFS) #define AUTOFS_UFS_FS_FLAGS (FS_NOTIMEOUT | FS_UBACKGROUND | FS_AMQINFO | FS_ON_AUTOFS) #define AUTOFS_XFS_FS_FLAGS (FS_NOTIMEOUT | FS_UBACKGROUND | FS_AMQINFO | FS_ON_AUTOFS) +#define AUTOFS_TMPFS_FS_FLAGS (FS_NOTIMEOUT | FS_UBACKGROUND | FS_AMQINFO | FS_ON_AUTOFS) #endif /* HAVE_FS_AUTOFS */ diff --git a/include/am_compat.h b/include/am_compat.h index 0cbd27b..2eed192 100644 --- a/include/am_compat.h +++ b/include/am_compat.h @@ -364,6 +364,10 @@ struct hsfs_args { # define efs_args_t u_int #endif /* defined(HAVE_FS_EFS) && !defined(efs_args_t) */ +#if defined(HAVE_FS_TMPFS) && !defined(tmpfs_args_t) +# define tmpfs_args_t u_int +#endif /* defined(HAVE_FS_TMPFS) && !defined(tmpfs_args_t) */ + /* * if does not define struct xfs_args, assume integer bit-field (linux) */ -- 2.43.0