From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [PATCH] stubdom/newlib: Provide correct names for time.h timezone variables Date: Thu, 27 May 2010 16:55:10 +0100 Message-ID: <1274975721-3777-4-git-send-email-ian.jackson@eu.citrix.com> References: <1274975721-3777-1-git-send-email-ian.jackson@eu.citrix.com> <1274975721-3777-2-git-send-email-ian.jackson@eu.citrix.com> <1274975721-3777-3-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1274975721-3777-3-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Jackson , Ian Jackson List-Id: xen-devel@lists.xenproject.org Newlib unaccountably defines _daylight, _timezone and _tzname, rather than daylight, timezone and tzname. The latter are specified in SuSv3. So do a global search and replace as part of our newlib patching :-(. Signed-off-by: Ian Jackson --- stubdom/Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/stubdom/Makefile b/stubdom/Makefile index 43e8e92..cd18b99 100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -102,6 +102,8 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz patch -d $@ -p0 < newlib.patch patch -d $@ -p0 < newlib-chk.patch patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch + find $@ -type f | xargs perl -i.bak \ + -pe 's/\b_(tzname|daylight|timezone)\b/$$1/g' touch $@ NEWLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libc.a -- 1.5.6.5