forked from OSchip/llvm-project
Move the #include of sys/stat.h inside the linux "hack" for the stat
family of functions so it gets noticed if we ever remove this. llvm-svn: 19022
This commit is contained in:
parent
227010bb31
commit
181cf4ce17
|
@ -18,9 +18,6 @@
|
||||||
#include "JIT.h"
|
#include "JIT.h"
|
||||||
#include "llvm/System/DynamicLibrary.h"
|
#include "llvm/System/DynamicLibrary.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#if defined(__linux__)
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#endif
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// AtExitHandlers - List of functions to call when the program exits,
|
// AtExitHandlers - List of functions to call when the program exits,
|
||||||
|
@ -50,6 +47,7 @@ static void runAtExitHandlers() {
|
||||||
// that the dynamic linker can't see. For more info, search for
|
// that the dynamic linker can't see. For more info, search for
|
||||||
// 'libc_nonshared.a' on Google, or read http://llvm.cs.uiuc.edu/PR274.
|
// 'libc_nonshared.a' on Google, or read http://llvm.cs.uiuc.edu/PR274.
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
|
#include <sys/stat.h>
|
||||||
void *FunctionPointers[] = {
|
void *FunctionPointers[] = {
|
||||||
(void *) stat,
|
(void *) stat,
|
||||||
(void *) fstat,
|
(void *) fstat,
|
||||||
|
|
Loading…
Reference in New Issue