Browse Source

Compile fix for non-windows systems

rdb 16 years ago
parent
commit
843dc3daa7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/plugin/p3dSession.cxx

+ 4 - 0
direct/src/plugin/p3dSession.cxx

@@ -1045,7 +1045,11 @@ start_p3dpython(P3DInstance *inst) {
     }
     }
 
 
     // Append a timestamp suffix to the log_basename
     // Append a timestamp suffix to the log_basename
+#ifdef _WIN32
     _tzset();
     _tzset();
+#else
+    tzset();
+#endif
     time_t log_time_seconds = time(NULL);
     time_t log_time_seconds = time(NULL);
     struct tm *log_time_local_p = localtime(&log_time_seconds);
     struct tm *log_time_local_p = localtime(&log_time_seconds);
     if (log_time_local_p != NULL) {
     if (log_time_local_p != NULL) {