Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/celestia/files/patch-src_celestia_glutmain.cpp
16461 views
1
--- src/celestia/glutmain.cpp.orig Sat Nov 2 23:20:19 2002
2
+++ src/celestia/glutmain.cpp Tue Mar 16 12:47:46 2004
3
@@ -511,8 +511,8 @@
4
// Set the simulation starting time to the current system time
5
time_t curtime=time(NULL);
6
appCore->start((double) curtime / 86400.0 + (double) astro::Date(1970, 1, 1));
7
- #ifdef MACOSX
8
- /* localtime in Darwin is is reentrant only
9
+ #if defined(MACOSX) || defined(__FreeBSD__)
10
+ /* localtime in Darwin is reentrant only
11
equiv to Linux localtime_r()
12
should probably port !MACOSX code to use this too, available since
13
libc 5.2.5 according to manpage */
14
15