Search Linux Wireless

Re: Patch to get iw building on Fedora 8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/21/2010 02:34 PM, Johannes Stezenbach wrote:
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@xxxxxxxxxxxxxxxx>   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).

It seems using strtod would be simpler all around, and might work on
more compilers and even more ancient systems.

Thanks,
Ben


HTH,
Johannes


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux