mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
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:
parent
1ebf647b05
commit
0342e13a32
@ -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
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <sched.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/signalfd.h>
|
||||
#include <linux/fs.h>
|
||||
|
||||
#include "udev.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user