blob: 8528710b8d19cfa0a336ac56d4b6be3310696dda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-aj,v 1.2 2006/02/17 23:46:40 adam Exp $
--- src/celestia/glutmain.cpp.orig 2005-07-19 22:30:59.000000000 +0200
+++ src/celestia/glutmain.cpp
@@ -521,7 +521,7 @@ int main(int argc, char* argv[])
// Set the simulation starting time to the current system time
time_t curtime=time(NULL);
appCore->start((double) curtime / 86400.0 + (double) astro::Date(1970, 1, 1));
- #ifdef MACOSX
+ #if defined(MACOSX) || defined(__DragonFly__)
/* localtime in Darwin is is reentrant only
equiv to Linux localtime_r()
should probably port !MACOSX code to use this too, available since
|