diff options
author | Eric Blake <ebb9@byu.net> | 2010-01-30 08:51:59 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2010-02-01 07:39:18 -0700 |
commit | 34deb3471655d57d311749b68d194ceee0081898 (patch) | |
tree | 87ed5bb6cc4e089b730bcaa5322210ca2b28a1f5 /modules/gettimeofday | |
parent | 94e727094e8d312df85d93a3f9f98cb43a5abb1d (diff) | |
download | gnulib-34deb3471655d57d311749b68d194ceee0081898.tar.gz |
sys_time: use link-warning
Modernize replacement header, to allow another GNULIB_POSIXCHECK
opportunity.
* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
(gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
(gl_SYS_TIME_MODULE_INDICATOR): New macro.
* modules/sys_time (Depends-on): Add warn-on-use.
(Makefile.am): Always build replacement.
(configure.ac): Update substitutions.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
(gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
bother with SYS_TIME_H.
* modules/gettimeofday (configure.ac): Declare indicator.
* lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
in use.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/gettimeofday')
-rw-r--r-- | modules/gettimeofday | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gettimeofday b/modules/gettimeofday index 0913cf1e8b..979f601d07 100644 --- a/modules/gettimeofday +++ b/modules/gettimeofday @@ -10,6 +10,7 @@ sys_time configure.ac: gl_FUNC_GETTIMEOFDAY +gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) Makefile.am: |