aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-05-03 16:20:27 -0500
committerRob Landley <rob@landley.net>2015-05-03 16:20:27 -0500
commit9398f05d34453e9306f7a91993ee4c8fcf1102ec (patch)
tree4891ab697227e014df4021a33acbe5c4668bc7e5
parenta967a669458ebb6b2a88a2d7e290ad449ab79d12 (diff)
downloadtoybox-9398f05d34453e9306f7a91993ee4c8fcf1102ec.tar.gz
Move a prototype to the start of portability.h (suggested by Elliott Hughes)
-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>