diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2013-09-21 03:53:42 -0700 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2013-09-21 03:53:42 -0700 |
commit | 95521073b1a6c0eec2719a4c355c83506b325693 (patch) | |
tree | 55d77a515985663189acfa1094e4ae1e62013c0b /runtime/POSIX/fd_32.c | |
parent | b913be09fa192d587e3006d83ad2f5d0e69f7e20 (diff) | |
parent | e9b814eda7a590af35959cd11ceeb7bef7496789 (diff) | |
download | klee-95521073b1a6c0eec2719a4c355c83506b325693.tar.gz |
Merge pull request #17 from MartinNowack/LLVM33
Make KLEE compile with LLVM 2.3.
Diffstat (limited to 'runtime/POSIX/fd_32.c')
-rw-r--r-- | runtime/POSIX/fd_32.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/POSIX/fd_32.c b/runtime/POSIX/fd_32.c index 6246f057..1e96de37 100644 --- a/runtime/POSIX/fd_32.c +++ b/runtime/POSIX/fd_32.c @@ -6,7 +6,19 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// +// Contains 32bit definitions of posix file functions +//===--- +#if __GNUC__ +#if __x86_64__ || __ppc64__ +#define ENV64 +#else +#define ENV32 +#endif +#endif + +#include "klee/Config/Version.h" +#if defined(ENV32) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 3)) #define _LARGEFILE64_SOURCE #include "fd.h" @@ -189,3 +201,5 @@ __attribute__((weak)) int lstat64(const char *path, struct stat64 *buf) { __attribute__((weak)) int fstat64(int fd, struct stat64 *buf) { return __fd_fstat(fd, buf); } + +#endif |