summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/fsysops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc/fsysops.c')
-rw-r--r--libshouldbeinlibc/fsysops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libshouldbeinlibc/fsysops.c b/libshouldbeinlibc/fsysops.c
index 57046e21..f26069df 100644
--- a/libshouldbeinlibc/fsysops.c
+++ b/libshouldbeinlibc/fsysops.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <argz.h>
#include <mach.h>
+#include <sys/mman.h>
#include <hurd/fsys.h>
/* Make FSYS readonly or writable. */
@@ -57,7 +58,7 @@ fsys_get_readonly (fsys_t fsys, int *readonly)
for (opt = opts
; !ok && opt && opt < opts + opts_len
- ; opt = argz_next (opts, opts_len, opt))
+ ; opt = argz_next (opts, opts_len, opt))
if (strcasecmp (opt, "--readonly") == 0)
{
*readonly = 1;