summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/dl-osinfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/dl-osinfo.h b/libc/sysdeps/linux/common/dl-osinfo.h
index 649d203f8..3110cb05d 100644
--- a/libc/sysdeps/linux/common/dl-osinfo.h
+++ b/libc/sysdeps/linux/common/dl-osinfo.h
@@ -17,10 +17,11 @@
# endif
# include <stdint.h>
-# include <sys/time.h>
# ifdef IS_IN_libc
-#include <fcntl.h>
+# include <fcntl.h>
+# include <unistd.h>
+# include <sys/time.h>
# define OPEN open
# define READ read
# define CLOSE close