aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/fsysops.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-07-11 01:42:52 +0000
committerRoland McGrath <roland@gnu.org>1999-07-11 01:42:52 +0000
commit2112c5aebddcc9b15a7c8a5ca2cdc0b848d92eb0 (patch)
treef2d0a9d1ed4ea8194353d0ef4e53890991d1a8b4 /libshouldbeinlibc/fsysops.c
parent94d78956ee2eb72ddc67f850e588695529b63fca (diff)
downloadhurd-2112c5aebddcc9b15a7c8a5ca2cdc0b848d92eb0.tar.gz
hurd-2112c5aebddcc9b15a7c8a5ca2cdc0b848d92eb0.tar.bz2
hurd-2112c5aebddcc9b15a7c8a5ca2cdc0b848d92eb0.zip
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* portinfo.h: Add #include <sys/mman.h> for munmap decl. * fsysops.c: Likewise. * idvec-auth.c: Likewise.
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;