From 37fd198dbbdaebb26a64cba46dd23092420b73cf Mon Sep 17 00:00:00 2001 From: Neo139 Date: Sat, 8 Oct 2011 16:02:14 -0300 Subject: [PATCH] Fix 1 error+2 warnings. Tested with Webmin 1.570 with OpenBSD 2011-08-07 00:02 snapshot. --- mount/openbsd-mounts-2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mount/openbsd-mounts-2.c b/mount/openbsd-mounts-2.c index ab24d3277..625cb853f 100644 --- a/mount/openbsd-mounts-2.c +++ b/mount/openbsd-mounts-2.c @@ -3,6 +3,8 @@ #include #include #include +#include +#include char *find_type(int t); char *expand_flags(int f); @@ -40,7 +42,9 @@ if (f & MNT_NODEV) strcat(buf, "nodev,"); if (f & MNT_SYNCHRONOUS) strcat(buf, "sync,"); if (f & MNT_ASYNC) strcat(buf, "async,"); if (f & MNT_QUOTA) strcat(buf, "quota,"); +#ifdef MNT_UNION if (f & MNT_UNION) strcat(buf, "union,"); +#endif if (buf[0] == 0) return "-"; buf[strlen(buf)-1] = 0; return buf;