]> err.no Git - util-linux/commitdiff
cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY.
authorTom Prince <tom.prince@ualberta.net>
Fri, 15 May 2009 02:43:02 +0000 (22:43 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 19 May 2009 12:25:43 +0000 (14:25 +0200)
Signed-off-by: Tom Prince <cougar@hermes>
configure.ac
misc-utils/cal.c

index 1abf688f6a43cfb4f36844d452399829971788f0..af946a15f6ed3432715c6425f575c20357fd1970 100644 (file)
@@ -105,6 +105,8 @@ AC_CHECK_HEADERS([linux/raw.h],
                 [AM_CONDITIONAL([HAVE_RAW], [true])],
                 [AM_CONDITIONAL([HAVE_RAW], [false])])
 
+AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]])
+
 AC_CHECK_FUNCS(
        [inet_aton \
        fsync \
index f2d52e8cbc7bff372e9075b4d7af6c1255e5dbfb..a8534b8ca9e890ea9cc048fb987b0e0503ed045d 100644 (file)
@@ -291,7 +291,7 @@ main(int argc, char **argv) {
  * the locale database, which can be overridden with the
  * -s (Sunday) or -m (Monday) options.
  */
-#ifdef HAVE_LANGINFO_H
+#if HAVE_DECL__NL_TIME_WEEK_1STDAY
        /*
         * You need to use 2 locale variables to get the first day of the week.
         * This is needed to support first_weekday=2 and first_workday=1 for