97666 breaks clang

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

97666 breaks clang

Gonsolo
Revision 97666 adds /usr/include/linux to the search path of c headers.

This breaks clang with the following file:

#include <pthread.h>

int main()
{
}

with the error:

clang++ -Wall -Wextra -g -pthread -o bla bla.cc
In file included from bla.cc:1:
In file included from /usr/include/pthread.h:29:
In file included from /usr/include/linux/signal.h:4:
/usr/include/asm/signal.h:135:2: error: unknown type name 'size_t'
         size_t ss_size;

as /usr/include/linux/signal.h is found before /usr/include/signal.h.

g
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: 97666 breaks clang

Eric Christopher-2

On Mar 3, 2010, at 4:35 PM, Gonsolo wrote:

> Revision 97666 adds /usr/include/linux to the search path of c headers.
>
> This breaks clang with the following file:
>
> #include <pthread.h>
>
> int main()
> {
> }
>
> with the error:
>

Already fixed.

Thanks!

-eric
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev