mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
tests: avoid compile failure on linux kernels older than 2.6.19
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
e5f46105a1
commit
ba1a91cd1f
@ -24,7 +24,9 @@
|
|||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <linux/magic.h>
|
#if HAVE_LINUX_MAGIC_H
|
||||||
|
# include <linux/magic.h>
|
||||||
|
#endif
|
||||||
#include <selinux/selinux.h>
|
#include <selinux/selinux.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -33,6 +35,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <attr/xattr.h>
|
#include <attr/xattr.h>
|
||||||
|
|
||||||
|
#ifndef NFS_SUPER_MAGIC
|
||||||
|
# define NFS_SUPER_MAGIC 0x6969
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "virstring.h"
|
#include "virstring.h"
|
||||||
|
|
||||||
static int (*realstatfs)(const char *path, struct statfs *buf);
|
static int (*realstatfs)(const char *path, struct statfs *buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user