diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2012-04-11 15:35:36 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2012-04-11 15:35:36 +0000 |
commit | 14ada94682fd7857e81e8dc58a2b37c309879a04 (patch) | |
tree | 7410d7dff8ecc51ff55d085898e90f61f2f93664 /llvm/lib/Support/Unix/Process.inc | |
parent | 28397be05985863cf3915aa789e574f63204bb70 (diff) | |
download | bcm5719-llvm-14ada94682fd7857e81e8dc58a2b37c309879a04.tar.gz bcm5719-llvm-14ada94682fd7857e81e8dc58a2b37c309879a04.zip |
Fix the build under Debian GNU/Hurd.
Thanks to Pino Toscano for the patch
llvm-svn: 154500
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 5cdb11ccebc..2d7fd384e8b 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -136,7 +136,7 @@ int Process::GetCurrentGroupId() { return getgid(); } -#ifdef HAVE_MACH_MACH_H +#if defined(HAVE_MACH_MACH_H) && !defined(__GNU__) #include <mach/mach.h> #endif @@ -150,7 +150,7 @@ void Process::PreventCoreFiles() { setrlimit(RLIMIT_CORE, &rlim); #endif -#ifdef HAVE_MACH_MACH_H +#if defined(HAVE_MACH_MACH_H) && !defined(__GNU__) // Disable crash reporting on Mac OS X 10.0-10.4 // get information about the original set of exception ports for the task |