NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: error: field 'ev_timeout' has incomplete type



noloader%gmail.com@localhost (Jeffrey Walton) writes:

>libtool: compile:  gcc -I. -I/usr/pkg/include -I/usr/local/include -DSRCDIR=. -g
> -O2 -flto -pthread -c ./util/mini_event.c  -fPIC -DPIC -o .libs/mini_event.o
>In file included from ./util/mini_event.c:44:0:
>./util/mini_event.h:142:17: error: field 'ev_timeout' has incomplete type
>  struct timeval ev_timeout;
>                 ^
>*** [mini_event.lo] Error code 1

>According to searches, the header file of interest is <sys/time.h>.
>The header file is included in the source file.

"sys/time.h" is not included by "config.h" and included only
after "util/mini_event.h". That's too late.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index