gettimeofday: restore support for platforms that lack function
authorEric Blake <eblake@redhat.com>
Mon, 22 Feb 2010 16:00:06 +0000 (09:00 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 22 Feb 2010 23:00:59 +0000 (16:00 -0700)
commitaff170b49eab9693cdeaf5cc3559f5c64bfdf4c9
tree9b329a80f9150c161a79f5dff94ba98d3ba190e8
parent56ba8a8e50d7dfb086fd3bb95e5542b1929e96a6
gettimeofday: restore support for platforms that lack function

Fixes a regression from 2010-02-04, commit de4d0a3.

* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
replacement if function is missing.
* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
* modules/sys_time (Makefile.am): Substitute it.
* lib/sys_time.in.h (gettimeofday): Check it.
Reported by Michael Goffioul.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/sys_time.in.h
m4/gettimeofday.m4
m4/sys_time_h.m4
modules/sys_time