projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a967a66
)
Move a prototype to the start of portability.h (suggested by Elliott Hughes)
author
Rob Landley
<rob@landley.net>
Sun, 3 May 2015 21:20:27 +0000
(16:20 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 3 May 2015 21:20:27 +0000
(16:20 -0500)
lib/portability.h
patch
|
blob
|
history
toys.h
patch
|
blob
|
history
diff --git
a/lib/portability.h
b/lib/portability.h
index
b25048f
..
7bab646
100644
(file)
--- 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
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>