mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Be double sure about including sys/stat.h by wrapping the inclusion in
an "#if defined(HAVE_SYS_STAT_H)". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "JIT.h"
|
#include "JIT.h"
|
||||||
#include "llvm/System/DynamicLibrary.h"
|
#include "llvm/System/DynamicLibrary.h"
|
||||||
|
#include "llvm/Config/config.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@@ -47,7 +48,9 @@ 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__)
|
||||||
|
#if defined(HAVE_SYS_STAT_H)
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#endif
|
||||||
void *FunctionPointers[] = {
|
void *FunctionPointers[] = {
|
||||||
(void *) stat,
|
(void *) stat,
|
||||||
(void *) fstat,
|
(void *) fstat,
|
||||||
|
Reference in New Issue
Block a user