aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/fileops.c1
-rw-r--r--libio/iopopen.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index b997e4b..297b478 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -32,6 +32,7 @@
#include "libioP.h"
#include <assert.h>
#include <fcntl.h>
+#include <sys/mman.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/libio/iopopen.c b/libio/iopopen.c
index ac39485..53da776 100644
--- a/libio/iopopen.c
+++ b/libio/iopopen.c
@@ -29,11 +29,11 @@
# define _POSIX_SOURCE
#endif
#include "libioP.h"
+#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#ifdef _LIBC
-# include <unistd.h>
# include <shlib-compat.h>
# include <not-cancel.h>
#endif