/usr/local/bin/clang16 -target loongarch64-unknown-freebsd15.0 --sysroot=/tmp/obj/usr/home/ysw/src/freebsd/loongarch.loongarch64/tmp -B/var/empty -ftls-model=initial-exec -O2 -pipe -fno-common -G0 -march=loongarch64 -mabi=lp64d -mhard-float -g -gz=zlib -MD -MF.depend.sys_timex.o -MTsys_timex.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/local/llvm16/lib/clang/16/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c sys_timex.c -o sys_timex.o
In file included from sys_timex.c:1:
/tmp/obj/usr/home/ysw/src/freebsd/loongarch.loongarch64/tmp/usr/include/sys/timex.h:113:18: error: field has incomplete type 'struct timespec'
struct timespec time; /* current time (ns) (ro) */
^
/tmp/obj/usr/home/ysw/src/freebsd/loongarch.loongarch64/tmp/usr/include/sys/timex.h:113:9: note: forward declaration of 'struct timespec'
struct timespec time; /* current time (ns) (ro) */
^
1 error generated.
*** Error code 1
sys/timex.h:
#ifdef __FreeBSD__
#include <sys/_timespec.h>
#endif /* __FreeBSD__ */
sys/_timespec.h:
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */
};