TCG: Use gen_opc_ptr from context instead of global variable.
[qemu/agraf.git] / qemu-xattr.h
blobf910d96eafb56915283a880210bee4859edfd51c
1 /*
2 * Host xattr.h abstraction
4 * Copyright 2011 Red Hat Inc. and/or its affiliates
6 * Authors:
7 * Avi Kivity <avi@redhat.com>
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.
13 #ifndef QEMU_XATTR_H
14 #define QEMU_XATTR_H
17 * Modern distributions (e.g. Fedora 15, have no libattr.so, place attr.h
18 * in /usr/include/sys, and don't have ENOATTR.
21 #include "config-host.h"
23 #ifdef CONFIG_LIBATTR
24 # include <attr/xattr.h>
25 #else
26 # define ENOATTR ENODATA
27 # include <sys/xattr.h>
28 #endif
30 #endif