package/zip: fix musl compile
authorPeter Seiderer <ps.report@gmx.net>
Tue, 17 Dec 2019 22:11:34 +0000 (23:11 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 22 Dec 2019 12:52:25 +0000 (13:52 +0100)
commit376d2e8564822cc9bea8644859532949b2f87b05
treed1d63b4e9e862c1db24bb7a5d2a65d275cec39ba
parent8b37745d3cc87f1d49a9a2232bc94f2695b44aea
package/zip: fix musl compile

For musl toolchain timezone.c needs time.h include.

Fixes:
  http://autobuild.buildroot.net/results/77346a2cdb9eeef661527fb9566019f3cd1b82c9

  In file included from util.c:28:
  timezone.c: In function 'mktime':
  timezone.c:644:18: error: dereferencing pointer to incomplete type 'struct tm'
       save_isdst = tm->tm_isdst;

  timezone.c:661:11: warning: implicit declaration of function 'localtime'; did you mean 'dostime'? [-Wimplicit-function-declaration]
       ltm = localtime(&then);

  timezone.c:661:9: warning: assignment to 'struct tm *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
       ltm = localtime(&then);

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/zip/0007-timezone.c-needs-time.h-fixes-musl-compile.patch [new file with mode: 0644]