diff options
author | Denys Vlasenko | 2009-11-15 02:28:56 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-15 02:28:56 +0100 |
commit | 389cca4b9ed07be8d873b2aae01f3eb0c3474f7c (patch) | |
tree | 4ec81672d1bd6b18578576b876659d6a257ca5ae /archival/libunarchive/data_extract_all.c | |
parent | a307af1af62c51e33e2801d74dbc35560af0fc0e (diff) | |
download | busybox-389cca4b9ed07be8d873b2aae01f3eb0c3474f7c.zip busybox-389cca4b9ed07be8d873b2aae01f3eb0c3474f7c.tar.gz |
some non-gnu compilers can't have non-const struct initializers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libunarchive/data_extract_all.c')
-rw-r--r-- | archival/libunarchive/data_extract_all.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c index 889face..294024b 100644 --- a/archival/libunarchive/data_extract_all.c +++ b/archival/libunarchive/data_extract_all.c @@ -143,8 +143,10 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle) } /* same for utime */ if (archive_handle->ah_flags & ARCHIVE_RESTORE_DATE) { - struct timeval t = {.tv_sec = file_header->mtime, - .tv_usec = 0}; + struct timeval t; + + t.tv_sec = file_header->mtime; + t.tv_usec = 0; utimes(file_header->name, &t); } } |