[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [UNIKRAFT/NEWLIB PATCH] Define tzname
Currently, tzname is defined as an extern, which results in a undefined reference linker error when attempting to use it. This patch maps tzname to _tzanme, which *is* defined. newlib does this mapping in OS-specific files that we don't compile in, so this is a way to mimic that behavior. Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx> --- include/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/time.h b/include/time.h index a510293..0f94358 100644 --- a/include/time.h +++ b/include/time.h @@ -70,4 +70,8 @@ extern long _timezone; extern int _daylight; extern char *_tzname[2]; +#ifndef tzname +#define tzname _tzname +#endif + #endif /* NEWLIBGLUE_TIME_H */ -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |