summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Program.inc
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-07-08 11:27:56 +0000
committerKamil Rytarowski <n54@gmx.com>2017-07-08 11:27:56 +0000
commitaffab3047e777ab69e09d18d23e8e7748b86b728 (patch)
treecfb06c76f9c853995fe531ba0bf60bde5a7d0fe7 /llvm/lib/Support/Unix/Program.inc
parent70c671a3bf34748e49f22eb24008bd569a7ac594 (diff)
downloadbcm5719-llvm-affab3047e777ab69e09d18d23e8e7748b86b728.tar.gz
bcm5719-llvm-affab3047e777ab69e09d18d23e8e7748b86b728.zip
[Solaris] get rid of _RESTRICT_KYWD warning during the build
Summary: (re)definition of _RESTRICT_KYWD rightfully causes a warning message during the Solaris build. This hack is not needed if build compiler is properly configured (.e.g /usr/bin/gcc) so just remove it. Reviewers: ro, mgorny, krytarowski, joerg Reviewed By: joerg Subscribers: quenelle, llvm-commits Patch by Fedor Sergeev (Oracle). Differential Revision: https://reviews.llvm.org/D35054 llvm-svn: 307469
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r--llvm/lib/Support/Unix/Program.inc3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index 1704fa47994..c866d5b5a84 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -40,9 +40,6 @@
#include <unistd.h>
#endif
#ifdef HAVE_POSIX_SPAWN
-#ifdef __sun__
-#define _RESTRICT_KYWD
-#endif
#include <spawn.h>
#if defined(__APPLE__)
OpenPOWER on IntegriCloud