summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-06-03 16:18:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2019-06-03 16:19:17 +0300
commit1c47f374434aa66fb6620199fd027b96cee446e6 (patch)
tree3d0c4acc813efd5fd40a1b9d83d1be3e96037856 /src/apk_defines.h
parent37fbafcd928c466c82c892a7868d686d710e5d07 (diff)
downloadapk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.gz
apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.bz2
apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.xz
apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.zip
use fixed system time in test mode to have fixed test output
fixes test suite regression from previous commit
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index c7ab7e6..b008b51 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -14,6 +14,7 @@
#include <endian.h>
#include <string.h>
+#include <time.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define BIT(x) (1 << (x))
@@ -121,6 +122,8 @@ extern char **apk_argv;
#define APK_MAX_TAGS 16 /* see solver; unsigned short */
#define APK_CACHE_CSUM_BYTES 4
+time_t apk_time(void);
+
static inline size_t apk_calc_installed_size(size_t size)
{
const size_t bsize = 4 * 1024;