On Wed, Mar 11, 2020 at 4:23 AM Michael van Elst <[email protected]> wrote: > > [email protected] (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
