Guard inclusion of <langinfo.h> with
authorJim Meyering <jim@meyering.net>
Thu, 8 Aug 2002 16:36:33 +0000 (16:36 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 8 Aug 2002 16:36:33 +0000 (16:36 +0000)
`#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.

src/date.c
src/sort.c

index bce6a29..0aaed81 100644 (file)
@@ -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
 
index 5b75ebe..c8230fb 100644 (file)
@@ -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