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
This commit is contained in:
Rafael Espindola 2013-10-08 16:12:58 +00:00
parent 5a0169f0a1
commit 88fc7015ce
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,9 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#ifdef HAVE_POSIX_SPAWN #ifdef HAVE_POSIX_SPAWN
#ifdef __sun__
#define _RESTRICT_KYWD
#endif
#include <spawn.h> #include <spawn.h>
#if !defined(__APPLE__) #if !defined(__APPLE__)
extern char **environ; extern char **environ;

View File

@ -47,6 +47,10 @@
# include <sys/wait.h> # include <sys/wait.h>
#endif #endif
#ifdef HAVE_DLFCN_H
# include <dlfcn.h>
#endif
#ifndef WEXITSTATUS #ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif #endif