Fix compilation error when <ctime> is used and mktime is replaced.
authorBruno Haible <bruno@clisp.org>
Tue, 28 Jul 2009 19:01:16 +0000 (21:01 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 28 Jul 2009 19:01:52 +0000 (21:01 +0200)
commitab3390dfbe250699c6c6f59654516b688363f38f
tree3758ae88bbd7d3936cfb00bfe075b5b2ec84ad19
parentb598e4850109a959ef3722bf14d917ee608c3794
Fix compilation error when <ctime> is used and mktime is replaced.

* lib/time.in.h (mktime): New declaration.
* m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
REPLACE_MKTIME instead of defining mktime in config.h.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
* modules/time (Makefile.am): Substitute REPLACE_MKTIME.
Reported by Ross McFarland <rwmcfa1@neces.com>.
ChangeLog
lib/time.in.h
m4/mktime.m4
m4/time_h.m4
modules/time