[Solaris] get rid of _RESTRICT_KYWD warning during the build
authorKamil Rytarowski <n54@gmx.com>
Sat, 8 Jul 2017 11:27:56 +0000 (11:27 +0000)
committerKamil Rytarowski <n54@gmx.com>
Sat, 8 Jul 2017 11:27:56 +0000 (11:27 +0000)
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

llvm/lib/Support/Unix/Program.inc

index 1704fa4..c866d5b 100644 (file)
@@ -40,9 +40,6 @@
 #include <unistd.h>
 #endif
 #ifdef HAVE_POSIX_SPAWN
-#ifdef __sun__
-#define  _RESTRICT_KYWD
-#endif
 #include <spawn.h>
 
 #if defined(__APPLE__)