qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1.0 v2] configure: fix detection for xattr.h on


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH 1.0 v2] configure: fix detection for xattr.h on modern distributions
Date: Wed, 09 Nov 2011 19:23:40 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20111004 Iceowl/1.0b1 Icedove/3.0.11

Am 09.11.2011 11:33, schrieb Avi Kivity:
Modern distributions place xattr.h in /usr/include/sys, and fold
libattr.so into libc.  They also don't have an ENOATTR.

Make configure detect this, and add a qemu-xattr.h file that
directs the #include to the right place.

Signed-off-by: Avi Kivity<address@hidden>
---

v2: try for libc first, libattr second
[...]
+
+/*
+ * Modern distributions (e.g. Fedora 15, have no libattr.so, place attr.h
+ * in /usr/include/sys, and don't have ENOATTR.

There is a ')' missing, so I add it here: :-)

Whoever commits the patch can add it, too, so no v3 is needed for this patch.

+ */
+
+#include "config-host.h"
+
+#ifdef CONFIG_LIBATTR
+#  include<attr/xattr.h>
+#else
+#  define ENOATTR ENODATA
+#  include<sys/xattr.h>
+#endif
+
+#endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]