OSDN Git Service

Fix warning: 'XATTR_NAME_SMACK' macro redefined.
authorElliott Hughes <enh@google.com>
Tue, 2 Aug 2016 18:12:15 +0000 (11:12 -0700)
committerRob Landley <rob@landley.net>
Tue, 2 Aug 2016 20:26:07 +0000 (15:26 -0500)
commit145b7024b5fbb74f16d5e403fb004ff8209bc4a0
tree5274d46ae11901e73d760420df60e25397c0888c
parentabf079b2d82cc3635863672371a2c53f8e940ba1
Fix warning: 'XATTR_NAME_SMACK' macro redefined.

Recent Linux uapi <linux/xattr.h> headers define XATTR_NAME_SMACK.
The <sys/xattr.h> include at the top of lib/lsm.h means that even
though the direct include of <linux/xattr.h> is guarded, it may
have already happened transitively anyway.

(The alternative fixes would be to hard-code the correct value for
XATTR_NAME_SMACK here instead, or #undef XATTR_NAME_SMACK.)
lib/lsm.h