changeset 608:e2d7c985e556

. Make BSD specific changes matching Linux/Solaris specific changes.
author glewis@misty.eyesbeyond.com
date Sun, 01 Mar 2009 18:26:25 -0800
parents 234e95005d2b
children f9f563e85d74
files src/os/bsd/vm/os_bsd.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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>
@@ -1621,6 +1622,10 @@
   return buf;
 }
 
+struct tm* os::localtime_pd(const time_t* clock, struct tm*  res) {
+  return localtime_r(clock, res);
+}
+
 ////////////////////////////////////////////////////////////////////////////////
 // runtime exit support