On Sat, 24 Jun 2006, Luca Berra said: > 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. True. >><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__ Gah. I looked *in that file* and *still* failed to spot that. You are, of course, correct. -- `NB: Anyone suggesting that we should say "Tibibytes" instead of Terabytes there will be hunted down and brutally slain. That is all.' --- Matthew Wilcox - 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