Fix Linux-specific stuff in ops_tmpfs.c
authorChristos Zoulas <christos@zoulas.com>
Thu, 10 Dec 2009 17:59:48 +0000 (12:59 -0500)
committerChristos Zoulas <christos@zoulas.com>
Thu, 10 Dec 2009 17:59:48 +0000 (12:59 -0500)
AUTOFS_TMPFS_FS_FLAGS is defined only in the Linux-specific
conf_linux.c file, so it cannot be built on Solaris.
From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>

ChangeLog
amd/ops_tmpfs.c

index 0216c889ce77461c4e97261da7a6be7f25ed203c..6ec3e48cd1b649d6f45e50018432fb94ce422a5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-12-10  Christos Zoulas <christos@zoulas.com>
 
+       * Fix Linux-specific stuff in ops_tmpfs.c
+         AUTOFS_TMPFS_FS_FLAGS is defined only in the Linux-specific
+         conf_linux.c file, so it cannot be built on Solaris.
+         From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
+
         * Add missing parenthesis to fix defined(XXX
          From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
 
index 7c8da58e1998c071aada5d4afe8ab34f6fc163ea..4a762559ba9ee5ed732e40db1e5691315d2b3c58 100644 (file)
@@ -75,7 +75,7 @@ am_ops tmpfs_ops =
   amfs_generic_find_srvr,
   0,                           /* tmpfs_get_wchan */
   FS_MKMNT | FS_NOTIMEOUT | FS_UBACKGROUND | FS_AMQINFO, /* nfs_fs_flags */
-#ifdef HAVE_FS_AUTOFS
+#if defined(HAVE_FS_AUTOFS) && defined(AUTOFS_TMPFS_FS_FLAGS)
   AUTOFS_TMPFS_FS_FLAGS,
 #endif /* HAVE_FS_AUTOFS */
 };