Verified Commit 5e96df15 authored by Max Rees's avatar Max Rees

Ensure apk_time is visible in libapk

parent a0b9f73a
......@@ -43,18 +43,13 @@ static struct list_head apk_applet_list;
static const char *test_installed_db = NULL;
static const char *test_world = NULL;
static struct apk_string_array *test_repos;
#endif
char **apk_argv;
time_t apk_time(void)
{
#ifdef TEST_MODE
return 1559567666;
#else
return time(NULL);
#endif
}
#endif
char **apk_argv;
static void version(void)
{
......
......@@ -42,3 +42,8 @@ void *apk_array_resize(void *array, size_t new_size, size_t elem_size)
return tmp;
}
time_t apk_time(void)
{
return time(NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment