Fix test-udev.c to build and work on a uclibc system

Two issues are addressed: 1) Makefile.am has to provide config.h
information on HAVE_UNSHARE to test-udev.c.  2) MS_PRIVATE and
MS_REC are defined in <linux/fs.h> which must be directly included
on a uclibc system because of different header stackings.  Its
inclusion makes no difference on a glibc system.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
This commit is contained in:
Anthony G. Basile 2013-01-21 23:11:07 -05:00 committed by Ian Stakenvicius
parent 1ebf647b05
commit 0342e13a32
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DVERSION=\"@VERSION@\" \
-I $(top_srcdir)/src/libudev \
-I $(top_srcdir)/src/udev

View File

@ -31,6 +31,7 @@
#include <sched.h>
#include <sys/mount.h>
#include <sys/signalfd.h>
#include <linux/fs.h>
#include "udev.h"