On Thu, Jul 29, 2010 at 02:27:13AM +0200, Denys Vlasenko wrote:
>On Thursday 29 July 2010 01:16, Dan Fandrich wrote:

>> Actually, I'm 
>> a bit surprised "less" uses any Linux-specific features at all.
>
>Me too. A comment would be in order...

 config STAT
        bool "stat"
        default y
+       depends on PLATFORM_LINUX # statfs()

I think mid-term the logic should go like:
platform.h:
#ifdef __linux__
# include <sys/statfs.h>
#endif

stat.c
# ifdef _SYS_STATFS_H
support {,f}statfs()
#else
skip {,f}statfs
#endif
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to