From c4065ba0aa6d33775b5b3c6322a4700ab9e8455c Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Fri, 11 Oct 2013 19:30:56 -0300 Subject: time64.h: On QNX, use const for tm_zone http://www.qnx.com/developers/docs/6.3.0SP3/neutrino/lib_ref/t/tm.html --- time64.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'time64.h') diff --git a/time64.h b/time64.h index cea1be9ed1..b7306d01fb 100644 --- a/time64.h +++ b/time64.h @@ -28,10 +28,11 @@ struct TM64 { #endif #ifdef HAS_TM_TM_ZONE -/* If glibc is defined, use const. Otherwise, - * if we are on android, use const but not with g++ +/* If glibc is defined or we are on QNX, use const. + * Otherwise, if we are on android, use const but + * not with g++. */ -# if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) +# if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) || defined(__QNX__) const # endif char *tm_zone; -- cgit v1.2.1