[cfe-commits] r84207 - /cfe/trunk/tools/CIndex/CIndex.cpp

Chris Lattner clattner at apple.com
Fri Oct 16 09:47:13 PDT 2009


On Oct 15, 2009, at 3:10 PM, Ted Kremenek wrote:

> Author: kremenek
> Date: Thu Oct 15 17:10:56 2009
> New Revision: 84207
>
> URL: http://llvm.org/viewvc/llvm-project?rev=84207&view=rev
> Log:
> Add missing #include for wait().

fork/exec/wait are not portable, they do not exist on windows, for  
example.  Can this use the sys::Program::Execute API in llvm/System/ 
Program.h?

-Chris

>
> Modified:
>    cfe/trunk/tools/CIndex/CIndex.cpp
>
> Modified: cfe/trunk/tools/CIndex/CIndex.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=84207&r1=84206&r2=84207&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/tools/CIndex/CIndex.cpp (original)
> +++ cfe/trunk/tools/CIndex/CIndex.cpp Thu Oct 15 17:10:56 2009
> @@ -24,6 +24,7 @@
> #include "clang/Frontend/ASTUnit.h"
> #include <cstdio>
> #include <dlfcn.h>
> +#include <sys/wait.h>
> #include "llvm/System/Path.h"
>
> using namespace clang;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list