things necessary for Sun Solaris 9 @ sparc


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@506 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/tests/check-GeneralizedTime.c b/skeletons/tests/check-GeneralizedTime.c
index 6c35a1c..0cec17d 100644
--- a/skeletons/tests/check-GeneralizedTime.c
+++ b/skeletons/tests/check-GeneralizedTime.c
@@ -14,20 +14,24 @@
 	tloc = asn_GT2time(&gt, &tm, as_gmt);
 	printf("%s: [%s] -> %ld == %ld\n",
 		as_gmt?"GMT":"ofs", time_str, (long)tloc, (long)expect);
-	if(tloc != -1)
-	printf("\t%04d-%02d-%02dT%02d:%02d:%02d%+03ld%02ld\n",
+
+	if(tloc != -1) {
+		printf("\t%04d-%02d-%02dT%02d:%02d:%02d%+03ld%02ld\n",
 		tm.tm_year + 1900,
 		tm.tm_mon + 1,
 		tm.tm_mday,
 		tm.tm_hour,
 		tm.tm_min,
 		tm.tm_sec,
-		(tm.tm_gmtoff / 3600),
-		labs(tm.tm_gmtoff % 3600)
-	);
+		(GMTOFF(tm) / 3600),
+		labs(GMTOFF(tm) % 3600)
+		);
+	}
 	assert(tloc == expect);
 
-	assert(tloc == -1 || as_gmt == 0 || tm.tm_gmtoff == 0);
+#ifdef	HAVE_TM_GMTOFF
+	assert(tloc == -1 || as_gmt == 0 || GMTOFF(tm) == 0);
+#endif
 
 	if(!as_gmt) check(time_str, expect, 1);
 }