+2007-01-18 Eric Blake <ebb9@byu.net>
+
+ * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
+ replace gettimeofday.
+ * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
+ name, to avoid infinite recursion.
+
2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
* MODULES.html.sh (Support for systems lacking POSIX:2001): New
causes problems. */
int
-gettimeofday (struct timeval *restrict tv, void *restrict tz)
+rpl_gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
#undef gettimeofday
#if HAVE_GETTIMEOFDAY
-#serial 9
+#serial 10
# Copyright (C) 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[Define to rpl_gmtime if the replacement function should be used.])
AC_DEFINE([localtime], [rpl_localtime],
[Define to rpl_localtime if the replacement function should be used.])
+ AC_DEFINE([gettimeofday], [rpl_gettimeofday],
+ [Define to rpl_gettimeofday if the replacement function should be used.])
])
# Prerequisites of lib/gettimeofday.c.