Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 252796

Summary: sys-kernel/linux-headers serial.h missing #include <linux/types.h>
Product: Gentoo Linux Reporter: Anders Aagaard <aagaande>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anders Aagaard 2008-12-28 10:56:31 UTC
serial.h cant be included without including types.h first at this point, this breaks any compile that does so, for example wine-1.1.11.

A simple:
#include <linux/types.h>
Fixes the problem.

Upstream this is not a problem : http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/serial.h

Reproducible: Always

Steps to Reproduce:
1. emerge linux-headers-2.6.28
2. emerge wine 1.1.11
3.
Comment 1 Philipp 2008-12-28 11:24:56 UTC
It is a problem upstream, too. As you see, the __KERNEL__ is around the inclusion of types.h. It needs to be moved below.
Comment 2 Rafał Mużyło 2008-12-28 15:40:40 UTC

*** This bug has been marked as a duplicate of bug 252721 ***