mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 17:32:59 +00:00
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:
parent
5a0169f0a1
commit
88fc7015ce
@ -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;
|
||||
|
@ -47,6 +47,10 @@
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DLFCN_H
|
||||
# include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#ifndef WEXITSTATUS
|
||||
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user