summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Program.inc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-08 16:12:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-08 16:12:58 +0000
commit9ab9fe91fb6cd834597513d36936c4ad9a785a4f (patch)
tree849daca68110dd467e378ffb0bed727ef3bed9c8 /llvm/lib/Support/Unix/Program.inc
parente8845ad4c5f8ae7b7775743d82f35cfd4c71e419 (diff)
downloadbcm5719-llvm-9ab9fe91fb6cd834597513d36936c4ad9a785a4f.tar.gz
bcm5719-llvm-9ab9fe91fb6cd834597513d36936c4ad9a785a4f.zip
Fix build on Solaris 11.
Patch by Vladimir Voskresensky. The erros were: Path.inc:274:3: error: ‘Dl_info’ was not declared in this scope ... and usr/include/spawn.h:52:14: error: expected ‘,’ or ‘...’ before ‘argv’ llvm-svn: 192185
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r--llvm/lib/Support/Unix/Program.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index 2822e912c81..78b29714549 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -36,6 +36,9 @@
#include <unistd.h>
#endif
#ifdef HAVE_POSIX_SPAWN
+#ifdef __sun__
+#define _RESTRICT_KYWD
+#endif
#include <spawn.h>
#if !defined(__APPLE__)
extern char **environ;
OpenPOWER on IntegriCloud