Make this less crude.
This commit is contained in:
parent
21e148a85a
commit
d87b260433
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59731
@ -1,13 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- src/celestia/glutmain.cpp.orig Tue Apr 30 10:36:11 2002
|
||||
+++ src/celestia/glutmain.cpp Fri May 17 17:47:50 2002
|
||||
@@ -509,7 +509,7 @@ int main(int argc, char* argv[])
|
||||
+++ src/celestia/glutmain.cpp Sat May 18 16:16:21 2002
|
||||
@@ -509,7 +509,7 @@
|
||||
// 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 1
|
||||
+ #if defined(MACOSX) || defined(__FreeBSD__)
|
||||
/* localtime in Darwin is is reentrant only
|
||||
equiv to Linux localtime_r()
|
||||
should probably port !MACOSX code to use this too, available since
|
||||
|
Loading…
Reference in New Issue
Block a user