Move a prototype to the start of portability.h (suggested by Elliott Hughes)
authorRob Landley <rob@landley.net>
Sun, 3 May 2015 21:20:27 +0000 (16:20 -0500)
committerRob Landley <rob@landley.net>
Sun, 3 May 2015 21:20:27 +0000 (16:20 -0500)
lib/portability.h
toys.h

index b25048f..7bab646 100644 (file)
@@ -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 aa4381c..4b2d373 100644 (file)
--- 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>