summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-05 03:05:11 +0000
committerJim Meyering <jim@meyering.net>1999-05-05 03:05:11 +0000
commitc4ddb7f83ad92f1bfc02779cacd340b5ff8d60a5 (patch)
treeedb0f87c7a3f72126d043fc9f657f45772d7782c /lib
parent431db6c84745a69384c57e57db66097f715747c0 (diff)
downloadcoreutils-c4ddb7f83ad92f1bfc02779cacd340b5ff8d60a5.tar.xz
Include makepath.h libintl.h, not after it.
Otherwise, we'd get the wrong definition of PARAMS from libintl.h. (The method of defining PARAMS in libintl.h doesn't check PROTOTYPES, which is necessary on Irix4 since cc doesn't define __STDC__.) From Kaveh Ghazi.
Diffstat (limited to 'lib')
-rw-r--r--lib/makepath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index bf6ba3187..4a758e37a 100644
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -96,6 +96,9 @@ extern int errno;
#define WX_USR (S_IWUSR | S_IXUSR)
+/* Include this before libintl.h so we get our definition of PARAMS. */
+#include "makepath.h"
+
#if HAVE_LOCALE_H
# include <locale.h>
#endif
@@ -113,7 +116,6 @@ typedef int gid_t;
#endif
#include "save-cwd.h"
-#include "makepath.h"
#include "error.h"
void strip_trailing_slashes ();