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