patch-src_celengine_astro_cpp 639 B

12345678910111213
  1. $OpenBSD: patch-src_celengine_astro_cpp,v 1.3 2009/07/20 10:35:20 ajacoutot Exp $
  2. --- src/celengine/astro.cpp.orig Mon Jul 20 11:59:23 2009
  3. +++ src/celengine/astro.cpp Mon Jul 20 11:59:41 2009
  4. @@ -522,7 +522,7 @@ const char* astro::Date::toCStr(Format format) const
  5. cal_time.tm_sec = (int)seconds;
  6. cal_time.tm_wday = wday;
  7. cal_time.tm_gmtoff = utc_offset;
  8. -#if defined(TARGET_OS_MAC) || defined(__FreeBSD__)
  9. +#if defined(TARGET_OS_MAC) || defined(__FreeBSD__) || defined(__OpenBSD__)
  10. // tm_zone is a non-const string field on the Mac and FreeBSD (why?)
  11. cal_time.tm_zone = const_cast<char*>(tzname.c_str());
  12. #else