$OpenBSD: patch-hotspot_src_os_bsd_vm_perfMemory_bsd_cpp,v 1.1 2008/06/28 12:34:58 kurt Exp $
--- hotspot/src/os/bsd/vm/perfMemory_bsd.cpp.orig	Thu Jun 26 17:16:43 2008
+++ hotspot/src/os/bsd/vm/perfMemory_bsd.cpp	Thu Jun 26 17:17:37 2008
@@ -223,7 +223,6 @@ static bool is_directory_secure(const char* path) {
 //
 static char* get_user_name(uid_t uid) {
 
-#ifndef _ALLBSD_SOURCE
   struct passwd pwent;
 
   // determine the max pwbuf size from sysconf, and hardcode
@@ -274,26 +273,6 @@ static char* get_user_name(uid_t uid) {
 
   FREE_C_HEAP_ARRAY(char, pwbuf);
   return user_name;
-
-#else
-
-  struct passwd* p = getpwuid(uid);
-  if (PrintMiscellaneous && Verbose) {
-    if (p == NULL) {
-      jio_fprintf(stderr, "Could not retrieve passwd entry: %s\n",
-                          strerror(errno));
-    }
-    else {
-      jio_fprintf(stderr, "Could not determine user name: %s\n",
-                           p->pw_name == NULL ? "pw_name = NULL" :
-                                                "pw_name zero length");
-    }
-  }
-
-  char* user_name = NEW_C_HEAP_ARRAY(char, strlen(p->pw_name) + 1);
-  strcpy(user_name, p->pw_name);
-  return user_name;
-#endif
 }
 
 // return the name of the user that owns the process identified by vmid.
