bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] include sys/time.h from gtags.c


From: Shigio Yamaguchi
Subject: Re: [PATCH] include sys/time.h from gtags.c
Date: Thu, 12 Jun 2003 22:49:11 +0900

Committed. Thank you.

> 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
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]