build: fix selinux.c build failure on 32 bit
commit142baf67407e1766f83cf000c9269a66048773b5
authorPádraig Brady <P@draigBrady.com>
Thu, 28 Nov 2013 02:23:11 +0000 (28 02:23 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 28 Nov 2013 02:29:00 +0000 (28 02:29 +0000)
treee50137779c87b3e55fe3e734975cd9977316fac6
parent7e39ef9f883ed788ce98329383ab071398e28b6d
build: fix selinux.c build failure on 32 bit

* src/selinux.c: Don't include the system "fts.h" as
that disallows _FILE_OFFSET_BITS=64 which gnulib auto enables
to support large files on 32 bit systems.  Instead include
our "xfts.h" which includes the less limited gnulib replacement,
and also a checked version of xfts_open().
(restorecon): Use the checked xfts_open() rather than the standard
fts_open().
Prompted by the continuous integration build failure at:
http://hydra.nixos.org/build/6934169
src/selinux.c