summaryrefslogtreecommitdiff
path: root/devel/libexplain/files/patch-libexplain__buffer__mount_flags.c
blob: 6e6894edb9d2746a5dc73ddf3cff1d1e88193a18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- libexplain/buffer/mount_flags.c.orig
+++ libexplain/buffer/mount_flags.c
@@ -148,6 +148,7 @@
      * information and must be discarded.
      */
     first = 1;
+#if defined(MS_MGC_MSK) && defined(MS_MGC_VAL)
     if ((flags & MS_MGC_MSK) == MS_MGC_VAL)
     {
         flags &= ~MS_MGC_MSK;
@@ -156,7 +157,9 @@
             return;
         first = 0;
     }
-    else if (flags == 0)
+    else
+#endif
+    if (flags == 0)
     {
         explain_string_buffer_putc(sb, '0');
         return;