summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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