summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-08 16:36:33 +0000
committerJim Meyering <jim@meyering.net>2002-08-08 16:36:33 +0000
commit4cb69e11ad2309b0cc1b451f26a3c4902dcf53f9 (patch)
treef26a68816efbddb97c7b7648b24fcf0b1984d412
parent99ec0b1a38f860df75e7f7dadecc3de501feb611 (diff)
downloadcoreutils-4cb69e11ad2309b0cc1b451f26a3c4902dcf53f9.tar.xz
Guard inclusion of <langinfo.h> with
`#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.
-rw-r--r--src/date.c2
-rw-r--r--src/sort.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index bce6a29fa..0aaed8184 100644
--- a/src/date.c
+++ b/src/date.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
-#if HAVE_LANGINFO_H
+#if HAVE_LANGINFO_CODESET
# include <langinfo.h>
#endif
diff --git a/src/sort.c b/src/sort.c
index 5b75ebe45..c8230fbed 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -52,7 +52,7 @@ struct rlimit { size_t rlim_cur; };
#define AUTHORS N_ ("Mike Haertel and Paul Eggert")
-#if HAVE_LANGINFO_H
+#if HAVE_LANGINFO_CODESET
# include <langinfo.h>
#endif