mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] host-tz-database: Fix build on Darwin
Date: Mon, 16 Jan 2012 21:42:55 +0100	[thread overview]
Message-ID: <1326746575-63276-1-git-send-email-bernhard@bwalle.de> (raw)

This patch fixes following build error:

    localtime.c:1174: error: static declaration of 'tzsetwall' follows non-static declaration
    /usr/include/time.h:150: error: previous declaration of 'tzsetwall' was here

On Linux:

    % grep -r tzsetwall /usr/include/
    [nothing]

On Mac OS 10.7:

    % grep -r tzsetwall /usr/include/
    /usr/include/time.h:void tzsetwall(void);

So this patch doesn't break Linux.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/host-tz-database.make |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rules/host-tz-database.make b/rules/host-tz-database.make
index 018ec97..54a1003 100644
--- a/rules/host-tz-database.make
+++ b/rules/host-tz-database.make
@@ -75,7 +75,7 @@ $(STATEDIR)/host-tz-database.extract:
 HOST_TZ_DATABASE_PATH		:= PATH=$(HOST_PATH)
 HOST_TZ_DATABASE_CONF_TOOL	:= NO
 HOST_TZ_DATABASE_MAKE_OPT	:= \
-	zic TZDIR=/usr/share/zoneinfo
+	zic TZDIR=/usr/share/zoneinfo CFLAGS=-DSTD_INSPIRED
 HOST_TZ_DATABASE_INSTALL_OPT	:= \
 	posix_only TZDIR=$(HOST_TZ_DATABASE_PKGDIR)/usr/share/zoneinfo
 
-- 
1.7.7.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2012-01-16 20:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326746575-63276-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox