hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 21123 1370c7b2f97c
parent 20683 7b211e525ab8
child 21213 6290e790c312
--- a/hotspot/src/os/bsd/vm/os_bsd.cpp	Wed Jul 05 19:18:50 2017 +0200
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp	Thu Oct 24 20:47:18 2013 -0400
@@ -4746,6 +4746,10 @@
 // as libawt.so, and renamed libawt_xawt.so
 //
 bool os::is_headless_jre() {
+#ifdef __APPLE__
+    // We no longer build headless-only on Mac OS X
+    return false;
+#else
     struct stat statbuf;
     char buf[MAXPATHLEN];
     char libmawtpath[MAXPATHLEN];
@@ -4777,6 +4781,7 @@
     if (::stat(libmawtpath, &statbuf) == 0) return false;
 
     return true;
+#endif
 }
 
 // Get the default path to the core file