From: Rafael Espindola Date: Tue, 8 Oct 2013 16:12:58 +0000 (+0000) Subject: Fix build on Solaris 11. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=88fc7015ce9258a88d5e2a0b0cebf4a2f2f8e811;p=oota-llvm.git 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’ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192185 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index 2822e912c81..78b29714549 100644 --- a/lib/Support/Unix/Program.inc +++ b/lib/Support/Unix/Program.inc @@ -36,6 +36,9 @@ #include #endif #ifdef HAVE_POSIX_SPAWN +#ifdef __sun__ +#define _RESTRICT_KYWD +#endif #include #if !defined(__APPLE__) extern char **environ; diff --git a/lib/Support/Unix/Unix.h b/lib/Support/Unix/Unix.h index dd11c04b32b..ba688e38217 100644 --- a/lib/Support/Unix/Unix.h +++ b/lib/Support/Unix/Unix.h @@ -47,6 +47,10 @@ # include #endif +#ifdef HAVE_DLFCN_H +# include +#endif + #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif