# HG changeset patch # User dholmes # Date 1382662038 14400 # Node ID e006d2e25bc73c2a56e553cd0bdbb623fbde964d # Parent 4589b398ab03aba6a5da8c06ff53603488d1b8f4 8025673: [macosx] Disable X11 AWT toolkit Summary: Disable but not completely remove the XAWT and headless toolkits on Mac OS X Reviewed-by: dholmes Contributed-by: david.dehaven@oracle.com diff -r 4589b398ab03 -r e006d2e25bc7 src/os/bsd/vm/os_bsd.cpp --- a/src/os/bsd/vm/os_bsd.cpp Tue Oct 22 13:56:26 2013 -0700 +++ b/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