summaryrefslogtreecommitdiff
path: root/lib/time.in.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-08-09 23:05:37 +0200
committerLudovic Courtès <ludo@gnu.org>2009-08-09 23:05:37 +0200
commit25361e4b2564623f57a5b338912b2f656bfc8d94 (patch)
tree7dd9fe4524f1e49897c4dd6d3569851df81e1bf5 /lib/time.in.h
parent18c73f8e2bc4a184db62a975fa5bf2fdf43453e1 (diff)
downloadguile-25361e4b2564623f57a5b338912b2f656bfc8d94.tar.gz
Use Gnulib's `lib-symbol-versions' module.
* m4/gnulib-cache.m4: Add `lib-symbol-versions'.
Diffstat (limited to 'lib/time.in.h')
-rw-r--r--lib/time.in.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/time.in.h b/lib/time.in.h
index 7da429a54..cef4e0546 100644
--- a/lib/time.in.h
+++ b/lib/time.in.h
@@ -1,6 +1,6 @@
/* A more-standard <time.h>.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@@ -66,6 +66,12 @@ struct timespec
int nanosleep (struct timespec const *__rqtp, struct timespec *__rmtp);
# endif
+/* Return the 'time_t' representation of TP and normalize TP. */
+# if @REPLACE_MKTIME@
+# define mktime rpl_mktime
+extern time_t mktime (struct tm *__tp);
+# endif
+
/* Convert TIMER to RESULT, assuming local time and UTC respectively. See
<http://www.opengroup.org/susv3xsh/localtime_r.html> and
<http://www.opengroup.org/susv3xsh/gmtime_r.html>. */