]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: prevent LIST_ macros conflicts
authorJan Tulak <jtulak@redhat.com>
Tue, 18 Aug 2015 07:53:17 +0000 (17:53 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Aug 2015 07:53:17 +0000 (17:53 +1000)
commitbfbb770243190c15cd4223c14b92aae15ebb9198
tree857553a39cae52123d1e743bf6ff0143d576b82d
parentff6f019d3998ce39cd67f91dae17a0bcff818822
xfsprogs: prevent LIST_ macros conflicts

BSD 4.4 added some LIST_ macros into system header files, which
causes "macro redefined" warnings. To ensure we use our own macros,
undefine the system ones at first.

The conflicting macros are LIST_HEAD and LIST_HEAD_INIT

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/list.h