mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
Add a define for NFS_SUPER_MAGIC
Commit 3c12a67b76
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>
This commit is contained in:
parent
3c12a67b76
commit
6ef5a5beeb
@ -49,8 +49,10 @@
|
|||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/vfs.h>
|
#include <sys/vfs.h>
|
||||||
#include <linux/magic.h>
|
#ifndef NFS_SUPER_MAGIC
|
||||||
#endif
|
#define NFS_SUPER_MAGIC 0x6969
|
||||||
|
#endif /* NFS_SUPER_MAGIC */
|
||||||
|
#endif /* __linux__ */
|
||||||
|
|
||||||
#include "virterror_internal.h"
|
#include "virterror_internal.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user