busybox: Minor fix for glibc 2.21 compatibility
authorJohn Crispin <john@openwrt.org>
Thu, 12 Mar 2015 19:50:23 +0000 (19:50 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 12 Mar 2015 19:50:23 +0000 (19:50 +0000)
Signed-off-by: Jeff Waugh <jdub@bethesignal.org>
SVN-Revision: 44700

package/utils/busybox/patches/250-date-k-flag.patch

index d17d61f978ee89dd8123b16331cbfc932f309af6..f0dab26898a2f8be1633c06dc665e31ababe7693 100644 (file)
@@ -67,7 +67,7 @@
 +              settimeofday(NULL, &tz);
 +
 +              memset(&tz, 0, sizeof(tz));
-+#ifdef __USE_BSD
++#ifdef __USE_MISC
 +              tz.tz_minuteswest = -(tm_time.tm_gmtoff / 60);
 +#else
 +              tz.tz_minuteswest = -(tm_time.__tm_gmtoff / 60);