From: Ruediger Meier Date: Mon, 17 Mar 2014 10:48:47 +0000 (+0100) Subject: unshare: include libmount.h to provide missing MS_* defines X-Git-Tag: v2.25-rc1~421^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d754315c54af9cb8222e0a04ed5b2b4b927ed176;p=thirdparty%2Futil-linux.git 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 --- diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index 30b5d3e024..93a2c8d928 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -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 diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index 91e0ec74a8..1240293c05 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -27,6 +27,9 @@ #include #include +/* we only need some defines missing in sys/mount.h, no libmount linkage */ +#include + #include "nls.h" #include "c.h" #include "closestream.h"