[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 2/9] mark Linux-specific configuration options
From:       Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date:       2010-07-29 8:06:13
Message-ID: 20100729080613.GB12277 () mx ! loc
[Download RAW message or body]

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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic