From e9b814eda7a590af35959cd11ceeb7bef7496789 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Wed, 18 Sep 2013 12:38:32 +0200 Subject: Compile separate version of fd files only for LLVM 3.3 or higher --- runtime/POSIX/fd_32.c | 3 ++- runtime/POSIX/fd_64.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/POSIX/fd_32.c b/runtime/POSIX/fd_32.c index 20587b42..f2f384fb 100644 --- a/runtime/POSIX/fd_32.c +++ b/runtime/POSIX/fd_32.c @@ -17,7 +17,8 @@ #endif #endif -#ifdef ENV32 +#include "klee/Config/Version.h" +#if defined(ENV32) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 3)) #define _LARGEFILE64_SOURCE #include "fd.h" diff --git a/runtime/POSIX/fd_64.c b/runtime/POSIX/fd_64.c index c84599ff..268579c0 100644 --- a/runtime/POSIX/fd_64.c +++ b/runtime/POSIX/fd_64.c @@ -15,7 +15,9 @@ #endif #endif -#ifdef ENV64 + +#include "klee/Config/Version.h" +#if defined(ENV64) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 3)) #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include "fd.h" -- cgit 1.4.1