kernel-version: add linux kernel 2.6.32.71
[openwrt-14.07/.git] / package / system / fstools / patches / 005-missing_defines.patch
1 --- a/block.c   2016-07-13 10:17:47.000000000 +0300
2 +++ b/block.c   2016-07-13 13:14:09.563177519 +0300
3 @@ -36,6 +36,10 @@
4  
5  #include "libblkid-tiny/libblkid-tiny.h"
6  
7 +#ifndef MNT_DETACH
8 +#define MNT_DETACH      0x00000002
9 +#endif
10 +
11  #define ERROR(fmt, ...) do { \
12                 syslog(LOG_ERR, fmt, ## __VA_ARGS__); \
13                 fprintf(stderr, "block: "fmt, ## __VA_ARGS__); \
14 --- a/backend/jffs2.c   2016-07-13 10:17:47.000000000 +0300
15 +++ b/backend/jffs2.c   2016-07-13 13:15:15.947176786 +0300
16 @@ -32,6 +32,10 @@
17  
18  #define SWITCH_JFFS2 "/tmp/.switch_jffs2"
19  
20 +#ifndef MNT_DETACH
21 +#define MNT_DETACH      0x00000002
22 +#endif
23 +
24  void
25  foreachdir(const char *dir, int (*cb)(const char*))
26  {