On Wed, 18 Jul 2001, Nathan Scott wrote:
> The right way to implement this would be to figure out how the
> other Linux filesystems are handled and do XFS (Linux/XFS, that
> is) the same way, then make the existing amd code for XFS only
> be used on IRIX. I've only had a quick look at the am-utils
> code just now, so can't really give you more advice than that,
> I'm afraid.
Can you guys check if this small patch fixes the compile?
Thanks,
Ion
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
----------------------
Index: include/am_compat.h
===================================================================
RCS file: /proj/bank/cvsroot/am-utils/include/am_compat.h,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 am_compat.h
--- include/am_compat.h 2000/12/02 23:29:12 1.3.2.2
+++ include/am_compat.h 2001/07/18 01:21:47
@@ -265,6 +265,13 @@
# define efs_args_t u_int
#endif /* defined(HAVE_FS_EFS) && !defined(efs_args_t) */
+/*
+ * if does not define struct xfs_args, assume integer bit-field (linux)
+ */
+#if defined(HAVE_FS_XFS) && !defined(xfs_args_t)
+# define xfs_args_t u_int
+#endif /* defined(HAVE_FS_XFS) && !defined(xfs_args_t) */
+
#if defined(HAVE_FS_AUTOFS) && defined(MOUNT_TYPE_AUTOFS) &&
!defined(MNTTYPE_AUTOFS)
# define MNTTYPE_AUTOFS "autofs"
#endif /* defined(HAVE_FS_AUTOFS) && defined(MOUNT_TYPE_AUTOFS) &&
!defined(MNTTYPE_AUTOFS) */
|