opnsense-ports/devel/libexplain/files/patch-libexplain__buffer__mount_flags.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
499 B
C

--- 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;