]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: Fix building under uClibc.
authorJames Le Cuirot <chewi@aura-online.co.uk>
Mon, 16 Apr 2012 10:05:27 +0000 (11:05 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 24 May 2012 10:17:51 +0000 (12:17 +0200)
Commit fbc333fec09394bf4e47707de08a65e8c0e9c288 broke building under uClibc because HAVE_DECL macros are set to 0, not undefined.

Signed-off-by: James Le Cuirot <chewi@aura-online.co.uk>
misc-utils/cal.c

index c9efdf074efa18cec251e3a22f0b99d84602cd97..1c810ca85d6ae200c4d38c029f499179d2156e24 100644 (file)
@@ -297,7 +297,7 @@ main(int argc, char **argv) {
  * the locale database, which can be overridden with the
  * -s (Sunday) or -m (Monday) options.
  */
-#ifdef HAVE_DECL__NL_TIME_WEEK_1STDAY
+#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