Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined

2001-09-28  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (parse_line): Only set tm_gmtoff and tm_zone fields
	if __USE_BSD is defined

	* util.c (parse_date): Ditto
This commit is contained in:
Bradford Hovinen 2001-09-28 21:27:19 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent c01fe3b0ac
commit 091dc3447c
3 changed files with 9 additions and 0 deletions

View file

@ -94,8 +94,10 @@ parse_date (char *str)
if (extract_number (&str, &value, 2))
date->tm_sec = value;
#ifdef __USE_BSD
date->tm_zone = "GMT";
date->tm_gmtoff = 0;
#endif
return date;
}