8025673: [macosx] Disable X11 AWT toolkit

Disable but not completely remove the XAWT and headless toolkits on Mac OS X

Reviewed-by: dholmes
This commit is contained in:
David Dehaven 2013-10-24 20:47:18 -04:00 committed by David Holmes
parent 53fb16b381
commit be6a9b1f9c

View File

@ -4746,6 +4746,10 @@ int os::fork_and_exec(char* cmd) {
// 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 @@ bool os::is_headless_jre() {
if (::stat(libmawtpath, &statbuf) == 0) return false;
return true;
#endif
}
// Get the default path to the core file