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
On Wed, Mar 11, 2020 at 4:23 AM Michael van Elst <mlelstv%serpens.de@localhost> wrote:
>
> 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.
Oh, thanks. I did not notice the *.h file was missing the include.
Jeff
Home |
Main Index |
Thread Index |
Old Index