aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/portability.h3
-rw-r--r--toys.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/portability.h b/lib/portability.h
index b25048fe..7bab646d 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -28,6 +28,9 @@
#include <features.h>
+// Types various replacement prototypes need
+#include <sys/types.h>
+
// Various constants old build environments might not have even if kernel does
#ifndef AT_FDCWD
diff --git a/toys.h b/toys.h
index aa4381c5..4b2d3736 100644
--- a/toys.h
+++ b/toys.h
@@ -36,7 +36,6 @@
#include <sys/statvfs.h>
#include <sys/time.h>
#include <sys/times.h>
-#include <sys/types.h>
#include <sys/utsname.h>
#include <sys/wait.h>
#include <syslog.h>