On Tuesday, 30 August 2016 14:32:32 CEST Svante Signell wrote: > The glibc patch sysdeps_mach_hurd_adjtime.c.diff use a dummy struct timeval to > avoid calling ___host_adjust_time() in _adjtime() with a NULL third argument. > Smarter solutions can probably be found, comments are welcome.
You don't need to duplicate the whole __host_adjust_time call:
struct timeval dummy;
..
if (olddelta == NULL)
olddelta = &dummy;
should be enough.
--
Pino Toscano
