unshare: include libmount.h to provide missing MS_* defines
Since 6728ca10
we are using MS_PRIVATE and MS_REC which are not defined
in some systems's sys/mount.h.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
422f93bfbb
commit
d754315c54
|
@ -296,6 +296,7 @@ usrbin_exec_PROGRAMS += unshare
|
|||
dist_man_MANS += sys-utils/unshare.1
|
||||
unshare_SOURCES = sys-utils/unshare.c
|
||||
unshare_LDADD = $(LDADD) libcommon.la
|
||||
unshare_CFLAGS = $(AM_CFLAGS) -I$(ul_libmount_incdir)
|
||||
endif
|
||||
|
||||
if BUILD_NSENTER
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
#include <sys/wait.h>
|
||||
#include <sys/mount.h>
|
||||
|
||||
/* we only need some defines missing in sys/mount.h, no libmount linkage */
|
||||
#include <libmount.h>
|
||||
|
||||
#include "nls.h"
|
||||
#include "c.h"
|
||||
#include "closestream.h"
|
||||
|
|
Loading…
Reference in New Issue