diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-18 14:20:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-18 22:43:30 +0100 |
commit | 54aab71ff7c51677176331347074a765f22fd80d (patch) | |
tree | ca6a0001adaa3b165135cd32ea2c0cd12fed3c2b /compilerplugins | |
parent | 35196c32751570d0c4b79f550d6c8723d2936f1c (diff) |
On Windows, #include <process.h> for getpid
Change-Id: Ibfb52800cdde99298431dab9da1cb8109658c425
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/pluginhandler.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/pluginhandler.cxx b/compilerplugins/clang/pluginhandler.cxx index 89ba8f435da0..b46079bb179f 100644 --- a/compilerplugins/clang/pluginhandler.cxx +++ b/compilerplugins/clang/pluginhandler.cxx @@ -16,8 +16,13 @@ #include <clang/Frontend/FrontendPluginRegistry.h> #include <clang/Lex/PPCallbacks.h> #include <stdio.h> + +#if defined _WIN32 +#include <process.h> +#else #include <sys/stat.h> #include <unistd.h> +#endif /* This source file manages all plugin actions. It is not necessary to modify this |