summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
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
parent94d78956ee2eb72ddc67f850e588695529b63fca (diff)
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')
-rw-r--r--libshouldbeinlibc/fsysops.c3
-rw-r--r--libshouldbeinlibc/idvec-auth.c1
-rw-r--r--libshouldbeinlibc/portinfo.h3
3 files changed, 5 insertions, 2 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;
diff --git a/libshouldbeinlibc/idvec-auth.c b/libshouldbeinlibc/idvec-auth.c
index 3131e61e..b17233c8 100644
--- a/libshouldbeinlibc/idvec-auth.c
+++ b/libshouldbeinlibc/idvec-auth.c
@@ -19,6 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <mach.h>
+#include <sys/mman.h>
#include <hurd/auth.h>
#include "idvec.h"
diff --git a/libshouldbeinlibc/portinfo.h b/libshouldbeinlibc/portinfo.h
index bef2fa00..09d1643a 100644
--- a/libshouldbeinlibc/portinfo.h
+++ b/libshouldbeinlibc/portinfo.h
@@ -1,6 +1,6 @@
/* Print information about a task's ports
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <errno.h>
#include <mach.h>
+#include <sys/mman.h>
#include <portxlate.h>