diff options
author | Eric Blake <ebb9@byu.net> | 2007-01-18 16:15:42 +0000 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-01-18 16:15:42 +0000 |
commit | 8f4f0136cf53e5696e964adad3e40394ec645b77 (patch) | |
tree | 9e87102a167a06f4310dcf6259879f95559a9dc1 /m4/gettimeofday.m4 | |
parent | 5661ab9d49512b4cf3c19caa11bb581d8ce561ba (diff) | |
download | gnulib-8f4f0136cf53e5696e964adad3e40394ec645b77.tar.gz |
* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
replace gettimeofday.
* lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
name, to avoid infinite recursion.
Diffstat (limited to 'm4/gettimeofday.m4')
-rw-r--r-- | m4/gettimeofday.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4 index 9f70e10ef5..ec533594d1 100644 --- a/m4/gettimeofday.m4 +++ b/m4/gettimeofday.m4 @@ -1,4 +1,4 @@ -#serial 9 +#serial 10 # Copyright (C) 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -90,6 +90,8 @@ AC_DEFUN([gl_GETTIMEOFDAY_REPLACE_LOCALTIME], [ [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. |