Skip to content
Commit 5ed20724 authored by Serge Hallyn's avatar Serge Hallyn Committed by Allan McRae
Browse files

misc/sys/xattr.h: guard against linux uapi header inclusion

If the glibc xattr.h header is included after the uapi header,
compilation fails due to an enum re-using a #define from the
uapi header.  Protect against this by guarding the define and
enum inclusions against each other.

(A corresponding kernel patch has been sent here:
http://lkml.org/lkml/2014/3/7/331 )

(See https://lists.debian.org/debian-glibc/2014/03/msg00029.html
and https://sourceware.org/glibc/wiki/Synchronizing_Headers


for more information.)

Signed-off-by: default avatarSerge Hallyn <serge.hallyn@ubuntu.com>
(cherry picked from commit fdbe8eae)
parent 526fbebb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment