summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-01-21 23:11:07 -0500
committerIan Stakenvicius <axs@gentoo.org>2013-01-22 14:29:53 -0500
commit0342e13a321efbf3b8841eda30869eebe4e62bba (patch)
tree7599234c316b876ffef8375448e174a5c5c4495f /test
parent1ebf647b05a7314cfc0279810f802dd1dfa332c1 (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am2
-rw-r--r--test/test-udev.c1
2 files changed, 2 insertions, 1 deletions
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 <sched.h>
#include <sys/mount.h>
#include <sys/signalfd.h>
+#include <linux/fs.h>
#include "udev.h"