[Buildroot] [PATCH v1] package/zip: fix musl compile

Peter Korsgaard peter at korsgaard.com
Wed Dec 25 21:32:52 UTC 2019


>>>>> "Peter" == Peter Seiderer <ps.report at gmx.net> writes:

 > 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 at gmx.net>

Committed to 2019.02.x and 2019.11.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list