]> git.proxmox.com Git - mirror_qemu.git/blame - include/qemu/xattr.h
Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
[mirror_qemu.git] / include / qemu / xattr.h
CommitLineData
4f26f2b6
AK
1/*
2 * Host xattr.h abstraction
3 *
4 * Copyright 2011 Red Hat Inc. and/or its affiliates
5 *
6 * Authors:
7 * Avi Kivity <avi@redhat.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2, or any
10 * later version. See the COPYING file in the top-level directory.
11 *
12 */
13#ifndef QEMU_XATTR_H
14#define QEMU_XATTR_H
15
16/*
5bb8590d 17 * Modern distributions (e.g. Fedora 15), have no libattr.so, place attr.h
4f26f2b6
AK
18 * in /usr/include/sys, and don't have ENOATTR.
19 */
20
4f26f2b6
AK
21
22#ifdef CONFIG_LIBATTR
23# include <attr/xattr.h>
24#else
e0bd743b
KF
25# if !defined(ENOATTR)
26# define ENOATTR ENODATA
27# endif
6888af46
BM
28# ifndef CONFIG_WIN32
29# include <sys/xattr.h>
30# endif
4f26f2b6
AK
31#endif
32
33#endif