]> xenbits.xensource.com Git - libvirt.git/commitdiff
Add a define for NFS_SUPER_MAGIC
authorChris Lalancette <clalance@redhat.com>
Wed, 3 Mar 2010 16:42:08 +0000 (11:42 -0500)
committerChris Lalancette <clalance@redhat.com>
Wed, 3 Mar 2010 17:43:09 +0000 (12:43 -0500)
Commit 3c12a67b766cce51b47861ccde2be41de369f832 added
a dependency on the NFS_SUPER_MAGIC macro, which is
defined in linux/magic.h.  Unfortunately linux/magic.h
is not available in RHEL-5, and causes a compile error.
Just define it locally, since this is something that
can't change.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu/qemu_driver.c

index a6b87d4109f09b2f69a5f248362deb41b158da10..bb3edde8bb1a53478634f0463d2840c2b213c5ff 100644 (file)
 
 #ifdef __linux__
 #include <sys/vfs.h>
-#include <linux/magic.h>
-#endif
+#ifndef NFS_SUPER_MAGIC
+#define NFS_SUPER_MAGIC 0x6969
+#endif /* NFS_SUPER_MAGIC */
+#endif /* __linux__ */
 
 #include "virterror_internal.h"
 #include "logging.h"