From 0342e13a321efbf3b8841eda30869eebe4e62bba Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 21 Jan 2013 23:11:07 -0500 Subject: 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 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 Signed-off-by: Ian Stakenvicius --- test/Makefile.am | 2 +- test/test-udev.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/Makefile.am b/test/Makefile.am index 2adad9c97a..eac141f121 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 diff --git a/test/test-udev.c b/test/test-udev.c index 26e173de63..ba5daf7242 100644 --- a/test/test-udev.c +++ b/test/test-udev.c @@ -31,6 +31,7 @@ #include #include #include +#include #include "udev.h" -- cgit v1.2.3-54-g00ecf