[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] include sys/time.h from gtags.c
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] include sys/time.h from gtags.c |
Date: |
Thu, 12 Jun 2003 22:40:37 +0900 |
This is for the prototype of utimes.
Index: configure.ac
===================================================================
RCS file: /cvsroot/global/global/configure.ac,v
retrieving revision 1.10
diff -u -r1.10 configure.ac
--- configure.ac 6 Jun 2003 12:53:22 -0000 1.10
+++ configure.ac 12 Jun 2003 13:26:35 -0000
@@ -52,10 +52,11 @@
dnl Checks for libraries.
dnl Checks for header files.
-AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h)
+AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h sys/time.h)
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_STAT
+AC_HEADER_TIME
AG_BYTE_ORDER
dnl Checks for typedefs, structures, and compiler characteristics.
Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.81
diff -u -r1.81 gtags.c
--- gtags/gtags.c 12 Jun 2003 00:49:58 -0000 1.81
+++ gtags/gtags.c 12 Jun 2003 13:26:36 -0000
@@ -30,7 +30,16 @@
#include <utime.h>
#include <signal.h>
#include <stdio.h>
+#if TIME_WITH_SYS_TIME
+#include <sys/time.h>
#include <time.h>
+#else
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
#ifdef STDC_HEADERS
#include <stdlib.h>
#endif
----
Hideki IWAMOTO address@hidden
- [PATCH] include sys/time.h from gtags.c,
Hideki IWAMOTO <=