This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Silence compiler warning when using sysctl
- From: John Dallaway <john at dallaway dot org dot uk>
- To: jay at systech dot com
- Cc: ecos-patches at ecos dot sourceware dot org
- Date: Wed, 22 Jul 2009 12:15:18 +0100
- Subject: Re: Silence compiler warning when using sysctl
- References: <928014.72551.qm@web1103.biz.mail.sk1.yahoo.com>
Hi Jay
jay@systech.com wrote:
> The attached patch silences a compiler warning when using sysctl.
Assuming this is an undefined macro warning, I would prefer:
#if defined(__FreeBSD_cc_version) && (__FreeBSD_cc_version >= 300001)
to preserve existing behaviour precisely. Does this work for you?
John Dallaway