[llvm] r307469 - [Solaris] get rid of _RESTRICT_KYWD warning during the build
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 8 04:27:57 PDT 2017
Author: kamil
Date: Sat Jul 8 04:27:56 2017
New Revision: 307469
URL: http://llvm.org/viewvc/llvm-project?rev=307469&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Support/Unix/Program.inc
Modified: llvm/trunk/lib/Support/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Program.inc?rev=307469&r1=307468&r2=307469&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Program.inc (original)
+++ llvm/trunk/lib/Support/Unix/Program.inc Sat Jul 8 04:27:56 2017
@@ -40,9 +40,6 @@
#include <unistd.h>
#endif
#ifdef HAVE_POSIX_SPAWN
-#ifdef __sun__
-#define _RESTRICT_KYWD
-#endif
#include <spawn.h>
#if defined(__APPLE__)
More information about the llvm-commits
mailing list