lkml.org 
[lkml]   [2008]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] include <linux/types.h> into linux/dlm_plock.h for __u* typedef
On Wed, Sep 10, 2008 at 01:18:24PM -0700, David Miller wrote:
> From: "Kirill A. Shutemov" <kirill@shutemov.name>
> Date: Wed, 10 Sep 2008 16:15:13 +0300
>
> > $ make headers_install
> > ...
> > $ gcc usr/include/linux/dlm_plock.h
> > usr/include/linux/dlm_plock.h:25: error: expected specifier-qualifier-list
> > before ‘__u32’
>
> That's not how this file is used by real applications.
> Anybody can cook up contrived cases like this.
>
> Please show a real application or kernel compilation which breaks
> because of the lack of types.h include here.

Any application which include this header before linux/types.h (directly or
indirectly) will get the error. It's dependence on the order of inclusion.

--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ ALT Linux Team, http://www.altlinux.com/
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2008-09-11 17:31    [W:0.052 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site