* tests/df/no-mtab-status: Include <mntent.h> in test program, so
that the getmntent hack compilation fails on Solaris, as it
should, since it's not compatible with Solaris. Reported by
Stefano Lattarini in <http://bugs.gnu.org/12225>.
cat > k.c <<'EOF' || framework_failure_
#include <stdio.h>
#include <errno.h>
+#include <mntent.h>
struct mntent *getmntent (FILE *fp)
{
# Then compile/link it:
$CC -shared -fPIC -ldl -O2 k.c -o k.so \
- || framework_failure_ 'failed to compile with -shared -fPIC'
+ || skip_ "getmntent hack does not work on this platform"
# Test if LD_PRELOAD works:
LD_PRELOAD=./k.so df