[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Building gettext-0.11.5 bombs under Mingw]
From: |
Paul Eggert |
Subject: |
Re: [Fwd: Building gettext-0.11.5 bombs under Mingw] |
Date: |
Mon, 16 Dec 2002 14:39:28 -0800 |
> Date: Mon, 16 Dec 2002 21:42:08 +0100 (CET)
> From: Bruno Haible <address@hidden>
>
> Thanks for reporting this, gettext 0.11.6 will use <sys/utime.h> if it
> cannot find <utime.h>.
It's easy to also support older systems that lack both <utime.h> and
<sys/utime.h>. gzip does the following, for example.
#ifdef HAVE_UTIME
# ifdef HAVE_UTIME_H
# include <utime.h>
# else
# ifdef HAVE_SYS_UTIME_H
# include <sys/utime.h>
# else
struct utimbuf {
time_t actime;
time_t modtime;
};
# endif
# endif
#endif
Historically, there was a wide variation in utime, but the above code
works on all systems that I know of, including those that expect a
pointer to an array (or to a structure containing an array) instead of
a pointer to a simple structure.