pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: (patch) pkgtools/pkgin missing time_t declaration in archive.h
On Mon, Aug 17, 2015 at 01:07:03PM +0200, Joerg Sonnenberger wrote:
> On Sat, Aug 15, 2015 at 06:35:51PM +0200, Matthias Ferdinand wrote:
> > on my oldest Linux build hosts (SuSE 9.0, Ubuntu 6.06), pkgin fails to
> > build because time_t is not yet declared when archive.h declares
> > functions with time_t arguments.
>
> Huh? You have a sys/stat.h that doesn't define time_t?
(SuSE 9.0) /usr/include/sys/stat.h:
30 #if defined __USE_XOPEN || defined __USE_MISC
31 # ifdef __USE_XOPEN
32 # define __need_time_t
33 # endif
34 # ifdef __USE_MISC
35 # define __need_timespec
36 # endif
37 # include <time.h> /* For time_t resp. timespec. */
38 #endif
only with __need_time_t / __USE_XOPEN defined
from Ubuntu 12.04:
31 #if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
32 || defined __USE_ATFILE
33 # if defined __USE_XOPEN || defined __USE_XOPEN2K
34 # define __need_time_t
35 # endif
36 # if defined __USE_MISC || defined __USE_ATFILE
37 # define __need_timespec
38 # endif
39 # include <time.h> /* For time_t resp. timespec. */
40 #endif
Matthias
Home |
Main Index |
Thread Index |
Old Index