summaryrefslogtreecommitdiff
path: root/src/libs/libgroff/tmpname.cc
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-08-13 20:27:24 +0000
committerwlemb <wlemb>2001-08-13 20:27:24 +0000
commit0493a12cbdb350cbabb9286d10e8e085d4b747b5 (patch)
tree39efe689cc8a60b71d8c0b22718702273f01f98c /src/libs/libgroff/tmpname.cc
parent1cce6a2ecf0c58357b5e2187ea459bc165810ad8 (diff)
downloadgroff-0493a12cbdb350cbabb9286d10e8e085d4b747b5.tar.gz
* src/preproc/tbl/tbl.man: Minor documentation update.
* src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday(). * configure.ac: Add declaration test for gettimeofday(). * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines. * aclocal.m4: Include sys/time.h for gettimeofday declaration test. * configure: Regenerated.
Diffstat (limited to 'src/libs/libgroff/tmpname.cc')
-rw-r--r--src/libs/libgroff/tmpname.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/libgroff/tmpname.cc b/src/libs/libgroff/tmpname.cc
index bd0e3a07..05510ecb 100644
--- a/src/libs/libgroff/tmpname.cc
+++ b/src/libs/libgroff/tmpname.cc
@@ -39,6 +39,14 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# include <sys/time.h>
#endif
+#ifdef HAVE_GETTIMEOFDAY
+#ifdef NEED_DECLARATION_GETTIMEOFDAY
+extern "C" {
+ int gettimeofday(struct timeval *, void *);
+}
+#endif
+#endif
+
#if HAVE_STDINT_H
# include <stdint.h>
#endif