changeset 5050:195ff07bc7f6

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
author dsamersoff
date Wed, 07 Aug 2013 19:02:06 +0400
parents 196aa14f9f29
children 31f3b1e1c5e5
files src/os/bsd/vm/attachListener_bsd.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/attachListener_bsd.cpp	Tue Aug 06 21:06:19 2013 -0700
+++ b/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) {