提交 88459982 编写于 作者: K katleman

Merge

...@@ -4746,6 +4746,10 @@ int os::fork_and_exec(char* cmd) { ...@@ -4746,6 +4746,10 @@ int os::fork_and_exec(char* cmd) {
// as libawt.so, and renamed libawt_xawt.so // as libawt.so, and renamed libawt_xawt.so
// //
bool os::is_headless_jre() { bool os::is_headless_jre() {
#ifdef __APPLE__
// We no longer build headless-only on Mac OS X
return false;
#else
struct stat statbuf; struct stat statbuf;
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
char libmawtpath[MAXPATHLEN]; char libmawtpath[MAXPATHLEN];
...@@ -4777,6 +4781,7 @@ bool os::is_headless_jre() { ...@@ -4777,6 +4781,7 @@ bool os::is_headless_jre() {
if (::stat(libmawtpath, &statbuf) == 0) return false; if (::stat(libmawtpath, &statbuf) == 0) return false;
return true; return true;
#endif
} }
// Get the default path to the core file // Get the default path to the core file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册