From affab3047e777ab69e09d18d23e8e7748b86b728 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 8 Jul 2017 11:27:56 +0000 Subject: [PATCH] [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 --- llvm/lib/Support/Unix/Program.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc index 1704fa4..c866d5b 100644 --- a/llvm/lib/Support/Unix/Program.inc +++ b/llvm/lib/Support/Unix/Program.inc @@ -40,9 +40,6 @@ #include #endif #ifdef HAVE_POSIX_SPAWN -#ifdef __sun__ -#define _RESTRICT_KYWD -#endif #include #if defined(__APPLE__) -- 2.7.4