. Make BSD specific changes matching Linux/Solaris specific changes.
authorglewis@misty.eyesbeyond.com
Sun Mar 01 18:26:25 2009 -0800 (12 months ago)
changeset 608e2d7c985e556
parent 607234e95005d2b
child 609f9f563e85d74
. Make BSD specific changes matching Linux/Solaris specific changes.
src/os/bsd/vm/os_bsd.cpp
--- a/src/os/bsd/vm/os_bsd.cpp Sun Mar 01 18:25:56 2009 -0800
+++ b/src/os/bsd/vm/os_bsd.cpp Sun Mar 01 18:26:25 2009 -0800
@@ -42,6 +42,7 @@
# include <sys/utsname.h>
# include <sys/socket.h>
# include <sys/wait.h>
+# include <time.h>
# include <pwd.h>
# include <poll.h>
# include <semaphore.h>
@@ -1619,6 +1620,10 @@ char * os::local_time_string(char *buf,
t.tm_year + 1900, t.tm_mon + 1, t.tm_mday,
t.tm_hour, t.tm_min, t.tm_sec);
return buf;
+}
+
+struct tm* os::localtime_pd(const time_t* clock, struct tm* res) {
+ return localtime_r(clock, res);
}
////////////////////////////////////////////////////////////////////////////////