On Fri, Jun 23, 2006 at 08:45:47PM +0100, Nix wrote:
On Fri, 23 Jun 2006, Neil Brown mused:
Is there some #define in an include file which will allow me to tell
if the current uclibc supports ftw or not?
it is not only depending on the uClibc version, but also if ftw support
was compiled in or not.
I misspoke: ftw was split into multiple files in late 2005, but it was
originally added in September 2003, in time for version 0.9.21.
Obviously the #defines in <ftw.h> don't exist before that date, but
that's a bit late to check, really.
<features.h> provides the macros __UCLIBC_MAJOR__, __UCLIBC_MINOR__, and
__UCLIBC_SUBLEVEL__: versions above 0.9.20 appear to support ftw()
(at least, they have the function, in 32-bit form at least, which
is certainly enough for this application!)
the following would be the correct check.
#include <features.h>
#ifdef __UCLIBC_HAS_FTW__
.....
#else
.....
#endif /* __UCLIBC_HAS_FTW__ */
--
Luca Berra -- bluca@xxxxxxxxxx
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html