[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/sys/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sys/time.h b/include/sys/time.h index 4a81946..07dc078 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -39,4 +39,8 @@ #include <sys/reent.h> +#ifndef tzname +#define tzname _tzname +#endif + #endif /* __NEWLIB_GLUE_SYS_TIME_H__ */ -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |