[Lcdproc] Re: [PATCH] include asm/termbits.h instead of termios.h in hd44780-serial.c

Peter Marschall peter@adpm.de
Tue Apr 17 16:37:01 2007


Hi,

On Tuesday, 17. April 2007 01:32, FoX wrote:
> This version includes <asm/temios.h> instead of <termios.h>. It also
> fixes the compilation with our toolchain and seems less intrusive.
> Chose the best of the two.

I concur with Markus' answer: unconditionally replacing standard headers
without checking that the change does not negatively affect other 
distributions it not the way to go.

AFAIK the files in /usr/include/asm/ should not be used directly by
user prgorams.

Please try to come up with something like

#ifdef __GEEXBOX__
# include ....
#endif

where __GEEXBOX__ can be determined at configuration time.

Alternatively fix the toolchain to adhere to the standards
for Linux and BSD ;-)

Hope it helps
Peter

-- 
Peter Marschall
peter@adpm.de