]> 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>
Wed, 27 May 2009 08:46:04 +0000 (10:46 +0200)
Signed-off-by: Tom Prince <cougar@hermes>
configure.ac
misc-utils/cal.c

index ec41ae609da966b433160c354a4480d2ee655b20..9ab94a85836a777bb79b45c5bd56e8672446a275 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