Please add #include <sys/types.h> before #include <event.h>.

The C++ eventxx library (http://repo.or.cz/w/eventxx.git) does this in
its wrapper header file.

I hope this requirement will either be clearly documented or fixed in
the future.

CB

On 10/17/07, Sun Yi-Ming <[EMAIL PROTECTED]> wrote:
> Hi guys,
> I try to compile libevent-1.3e on my debian etch box, and got an error
> message which is "event.h:214: error: expected
> specifier-qualifier-list before 'u_char'".
> Is it a bug or did I do something wrong.
> btw, if i put an statement " typedef unsigned char u_char;" before
> include event.h, the compile goes smoothly.
>
> #include <stdio.h>
> // typedef unsigned char u_char;
> #include <event.h>
>
> int main()
> {
>        return 0;
> }
> --
> Sincerely,
>
> 孙一鸣 Simon Sun
> --
> Be a man with simple interface.
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users@monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to