lkml.org 
[lkml]   [2011]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] unifdef: drop unused errno.h include
On Tue, Dec 06, 2011 at 05:26:50PM -0500, Mike Frysinger wrote:
>
> This is the only header on my system that ends up requiring kernel
> headers, so if the kernel headers aren't available, we end up being
> unable to install kernel headers :).

I have some sympathy for this problem but I tend to think that it's
unreasonable to expect unifdef to work with an incomplete compiler
installation.

> Since this file doesn't actually use anything from errno.h, drop
> the include so it at least makes us a bit more robust on glibc.

The Linux kernel currently has unifdef-2.5. Version 2.6 has better error
handling so it uses the declaration of errno but not any of the E*
values. I could perhaps rejig it to avoid this if it really is important
to be able to bootsrap a system with incomplete headers.

Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Lundy, Fastnet, Irish Sea: West, backing south for a time, 5 or 6, increasing
7 to severe gale 9. Moderate or rough, occasionally very rough or high. Rain
or squally wintry showers. Good, occasionally poor.


\
 
 \ /
  Last update: 2011-12-12 12:09    [W:0.048 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site