8021771: warning stat64 is deprecated - when building on OSX 10.7.5
authordsamersoff
Wed, 07 Aug 2013 19:02:06 +0400
changeset 19269 59693d90fd61
parent 19268 ea6c4441c3e7
child 19270 607d97508c60
8021771: warning stat64 is deprecated - when building on OSX 10.7.5 Summary: stat64 have to be replaced with stat Reviewed-by: dholmes, kmo Contributed-by: rednaxelafx@gmail.com
hotspot/src/os/bsd/vm/attachListener_bsd.cpp
--- a/hotspot/src/os/bsd/vm/attachListener_bsd.cpp	Tue Aug 06 21:06:19 2013 -0700
+++ b/hotspot/src/os/bsd/vm/attachListener_bsd.cpp	Wed Aug 07 19:02:06 2013 +0400
@@ -445,14 +445,14 @@
 
 void AttachListener::vm_start() {
   char fn[UNIX_PATH_MAX];
-  struct stat64 st;
+  struct stat st;
   int ret;
 
   int n = snprintf(fn, UNIX_PATH_MAX, "%s/.java_pid%d",
            os::get_temp_directory(), os::current_process_id());
   assert(n < (int)UNIX_PATH_MAX, "java_pid file name buffer overflow");
 
-  RESTARTABLE(::stat64(fn, &st), ret);
+  RESTARTABLE(::stat(fn, &st), ret);
   if (ret == 0) {
     ret = ::unlink(fn);
     if (ret == -1) {