]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(struct_month_cmp): Guard definition with the same
authorJim Meyering <jim@meyering.net>
Sun, 11 Nov 2001 15:24:53 +0000 (15:24 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 11 Nov 2001 15:24:53 +0000 (15:24 +0000)
cpp directive that guards the use.

src/sort.c

index 0b0aa9a033a4cfaf2d51586f4cb0550603f88511..1ce7508a69f3df96e6cfa84c3b9e78318e2f4d7d 100644 (file)
@@ -535,7 +535,7 @@ zaptemp (const char *name)
       }
 }
 
-#ifdef ENABLE_NLS
+#if defined ENABLE_NLS && HAVE_NL_LANGINFO
 
 static int
 struct_month_cmp (const void *m1, const void *m2)
@@ -544,7 +544,7 @@ struct_month_cmp (const void *m1, const void *m2)
                 ((const struct month *) m2)->name);
 }
 
-#endif /* NLS */
+#endif
 
 /* Initialize the character class tables. */