summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/login.c1
-rw-r--r--utils/msgport.c5
-rw-r--r--utils/pids.c1
-rw-r--r--utils/showtrans.c1
-rw-r--r--utils/storeread.c1
5 files changed, 7 insertions, 2 deletions
diff --git a/utils/login.c b/utils/login.c
index d107a425..e3d7c4bc 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -32,6 +32,7 @@
#include <time.h>
#include <assert.h>
#include <version.h>
+#include <sys/mman.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/utils/msgport.c b/utils/msgport.c
index 5f494e1c..59362d87 100644
--- a/utils/msgport.c
+++ b/utils/msgport.c
@@ -31,6 +31,7 @@
#include <error.h>
#include <version.h>
#include "pids.h"
+#include <sys/mman.h>
/* From libc (not in hurd.h) */
char *
@@ -428,7 +429,7 @@ cmd_umask (pid_t pid, mach_port_t msgport, int argc, char *argv[])
umask = strtol(argv[0], 0, 8);
err = msg_set_init_int (msgport, task, INIT_UMASK, umask);
}
- else
+ else
{
err = msg_get_init_int (msgport, task, INIT_UMASK, &umask);
if (!err)
@@ -492,7 +493,7 @@ static const struct argp_option cmd_options[] =
command line (probably the first argument for this command). STATE
is the argp parser state as used in parse_cmd_opt. */
static error_t
-add_cmd (cmd_func_t func, size_t minargs, size_t maxargs,
+add_cmd (cmd_func_t func, size_t minargs, size_t maxargs,
char *arg, struct argp_state *state)
{
cmd_t *cmd;
diff --git a/utils/pids.c b/utils/pids.c
index 5e80a767..1f3ae316 100644
--- a/utils/pids.c
+++ b/utils/pids.c
@@ -25,6 +25,7 @@
#include <hurd.h>
#include <hurd/process.h>
#include <mach.h>
+#include <sys/mman.h>
#include "parse.h"
#include "pids.h"
diff --git a/utils/showtrans.c b/utils/showtrans.c
index d990b6c9..dbbada75 100644
--- a/utils/showtrans.c
+++ b/utils/showtrans.c
@@ -26,6 +26,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <version.h>
+#include <sys/mman.h>
#include <error.h>
#include <argz.h>
diff --git a/utils/storeread.c b/utils/storeread.c
index faae7225..80c36466 100644
--- a/utils/storeread.c
+++ b/utils/storeread.c
@@ -23,6 +23,7 @@
#include <unistd.h>
#include <hurd.h>
#include <sys/fcntl.h>
+#include <sys/mman.h>
#include <hurd/store.h>