diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2013-04-23 14:32:54 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2013-04-23 14:32:54 +0000 |
commit | 807802e4fcbf071e378f83c673d21947f4618003 (patch) | |
tree | 1388eb9649d1ec457aa32553030c8ea064b3ef48 /usr.bin/make/arch.h | |
parent | c4cc8b028da2fc9b827b985714e472baec3e832d (diff) |
remove TIMESTAMP abstraction layer, prodded by theo.
while there, clean up includes.
use strtoll for ar timestamps (pretty much unused in reality, more
standard conforming than anything)
use idea from Todd to adapt to time_t being 32 bits OR 64 bits
(pedantically correct: INT_MIN would work just fine up to 1910 or so...)
okay millert@, gone thru a make build.
Diffstat (limited to 'usr.bin/make/arch.h')
-rw-r--r-- | usr.bin/make/arch.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/make/arch.h b/usr.bin/make/arch.h index 5ff5aafd804..1c205e4f471 100644 --- a/usr.bin/make/arch.h +++ b/usr.bin/make/arch.h @@ -1,6 +1,6 @@ #ifndef ARCH_H #define ARCH_H -/* $OpenBSD: arch.h,v 1.7 2012/10/02 10:29:30 espie Exp $ */ +/* $OpenBSD: arch.h,v 1.8 2013/04/23 14:32:53 espie Exp $ */ /* * Copyright (c) 2001 Marc Espie. @@ -32,9 +32,7 @@ * Functions to manipulate libraries, archives and their members. */ -#ifndef TIMESTAMP_TYPE -#include "timestamp_t.h" -#endif +#include <sys/time.h> /* Initialization and cleanup */ extern void Arch_Init(void); @@ -53,10 +51,10 @@ extern void Arch_Touch(GNode *); * Find the modification time of a member of an archive *in the * archive*, and returns it. * The time is also stored in the member's GNode. */ -extern TIMESTAMP Arch_MTime(GNode *); +extern struct timespec Arch_MTime(GNode *); /* stamp = Arch_MemMTime(node); * Find the modification time of a member of an archive and returns it. * To use when the member only exists within the archive. */ -extern TIMESTAMP Arch_MemMTime(GNode *); +extern struct timespec Arch_MemMTime(GNode *); #endif |