From: Johannes Stezenbach <js@sig21.net>
To: Ben Greear <greearb@candelatech.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>, linux-wireless@vger.kernel.org
Subject: Re: Patch to get iw building on Fedora 8
Date: Tue, 21 Sep 2010 23:34:51 +0200 [thread overview]
Message-ID: <20100921213451.GA29134@sig21.net> (raw)
In-Reply-To: <4C991F25.1000102@candelatech.com>
On Tue, Sep 21, 2010 at 02:09:57PM -0700, Ben Greear wrote:
> On 09/21/2010 12:49 PM, Andreas Schwab wrote:
> >Ben Greear<greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> writes:
> >
> >>I need this in order to get iw to build on Fedora 8.
> >>
...
> >>+#define __USE_ISOC99
> >
> >This is wrong. You must never define internal glibc macros.
>
> How about this then?
...
> - tmpf = strtof(argv[i], &end);
> + tmpf = strtod(argv[i], &end);
...
> Seems you don't have to do anything clever to get strtod to work,
> and I assume it should cast just fine.
I think to use C99 features like strtof() you need to either
add -std=c99 to CFLAGS, or #define _ISOC99_SOURCE
(see /usr/include/features.h).
HTH,
Johannes
next prev parent reply other threads:[~2010-09-21 22:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 16:39 Patch to get iw building on Fedora 8 Ben Greear
2010-09-21 17:28 ` Johannes Berg
2010-09-23 23:05 ` Ben Greear
2010-09-24 9:31 ` Johannes Berg
2010-09-24 13:45 ` Ben Greear
2010-09-24 13:58 ` Johannes Berg
2010-09-21 19:49 ` Andreas Schwab
2010-09-21 21:09 ` Ben Greear
2010-09-21 21:34 ` Johannes Stezenbach [this message]
2010-09-22 16:52 ` Ben Greear
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=20100921213451.GA29134@sig21.net \
--to=js@sig21.net \
--cc=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.org \
--cc=schwab@linux-m68k.org \
/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;
as well as URLs for NNTP newsgroup(s).