ath5k: fix hardware queue index assignment
[openwrt.git] / package / utils / util-linux / patches / 003-unshare-include-libmount.h-to-provide-missing-MS_-de.patch
1 From d754315c54af9cb8222e0a04ed5b2b4b927ed176 Mon Sep 17 00:00:00 2001
2 From: Ruediger Meier <ruediger.meier@ga-group.nl>
3 Date: Mon, 17 Mar 2014 11:48:47 +0100
4 Subject: [PATCH 262/288] unshare: include libmount.h to provide missing MS_*
5  defines
6
7 Since 6728ca10 we are using MS_PRIVATE and MS_REC which are not defined
8 in some systems's sys/mount.h.
9
10 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 ---
12  sys-utils/Makemodule.am |    1 +
13  sys-utils/unshare.c     |    3 +++
14  2 files changed, 4 insertions(+)
15
16 diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am
17 index 30b5d3e..93a2c8d 100644
18 --- a/sys-utils/Makemodule.am
19 +++ b/sys-utils/Makemodule.am
20 @@ -296,6 +296,7 @@ usrbin_exec_PROGRAMS += unshare
21  dist_man_MANS += sys-utils/unshare.1
22  unshare_SOURCES = sys-utils/unshare.c
23  unshare_LDADD = $(LDADD) libcommon.la
24 +unshare_CFLAGS = $(AM_CFLAGS) -I$(ul_libmount_incdir)
25  endif
26  
27  if BUILD_NSENTER
28 diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c
29 index 91e0ec7..1240293 100644
30 --- a/sys-utils/unshare.c
31 +++ b/sys-utils/unshare.c
32 @@ -27,6 +27,9 @@
33  #include <sys/wait.h>
34  #include <sys/mount.h>
35  
36 +/* we only need some defines missing in sys/mount.h, no libmount linkage */
37 +#include <libmount.h>
38 +
39  #include "nls.h"
40  #include "c.h"
41  #include "closestream.h"
42 -- 
43 1.7.9.5
44