summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-10-29 15:07:24 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:13 +0100
commitc7be9f38400dd3c6364fff3812da52b33b5bc448 (patch)
treec2a5f138d2d6dc303d6c46f57510fc87d8346a2c
parent5da6a89b1e630263d034aab99c7a1056ec7891c4 (diff)
Portability: include <sys/types.h> before <sys/stat.h>.
-rw-r--r--ChangeLog2
-rw-r--r--which.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f934ec8..5f81580 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -480,3 +480,5 @@ Changes since rc-1.5b2
null character on the fly (since it's a nuisance having a literal
null character in trip.rc); reset sigexit in `fn fail'; add test for
nonblocking input file descriptor; fix test for cdpath.
+
+ Portability: include <sys/types.h> before <sys/stat.h>.
diff --git a/which.c b/which.c
index 3d23e3d..9a6e1bb 100644
--- a/which.c
+++ b/which.c
@@ -8,10 +8,11 @@
and to strip out unneeded functionality.
*/
+#include "rc.h"
+
#include <errno.h>
#include <sys/stat.h>
-#include "rc.h"
#include "getgroups.h"
#define X_USR 0100