[Bug 3097] BB making easily-fixed non-portable assumptions

Denys Vlasenko vda.linux at googlemail.com
Tue Feb 8 04:36:18 UTC 2011


On Monday 07 February 2011 19:59, Rich Felker wrote:
> On Mon, Feb 07, 2011 at 02:01:13PM +0000, bugzilla at busybox.net wrote:
> You also omitted the #include <unistd.h> from the patch, and as far as
> I can tell, platform.h gets included *before* any system headers, thus
> ensuring that _POSIX_VERSION will never be defined... Perhaps there is
> a reason for busybox's include order, but it seems like platform.h is
> going to have a hard time detecting anything about the platform if it
> gets included before any system headers...

I moved #include <unistd.h> to platform.h now.
-- 
vda


More information about the busybox mailing list