1 diff -wpruN '--exclude=*.orig' a~/lib/Basic/Targets/OSTargets.h a/lib/Basic/Targets/OSTargets.h
2 --- a~/tools/clang/lib/Basic/Targets/OSTargets.h 1970-01-01 00:00:00
3 +++ a/tools/clang/lib/Basic/Targets/OSTargets.h 1970-01-01 00:00:00
4 @@ -624,6 +624,7 @@ protected:
5 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
6 MacroBuilder &Builder) const override {
7 DefineStd(Builder, "sun", Opts);
8 + Builder.defineMacro("__illumos__");
9 DefineStd(Builder, "unix", Opts);
10 Builder.defineMacro("__ELF__");
11 Builder.defineMacro("__svr4__");