This looks like a case that's similar to what's handled by the following
code in gnulib/lib/sys_select.in.h:
/* On IRIX 6.5, <sys/timespec.h> includes <sys/types.h>, which includes
<sys/bsd_types.h>, which includes <sys/select.h>. At this point we
cannot
include <signal.h>, because that includes <internal/signal_core.h>,
which
gives a syntax error because <sys/timespec.h> has not been completely
processed. Simply delegate to the system's header in this case. */
#elif @HAVE_SYS_SELECT_H@ && defined __sgi && (defined _SYS_BSD_TYPES_H
&& !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H)
Perhaps you can propose a similar set of code for gnulib/lib/sys_time.in.h.