diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2013-11-13 09:26:51 -0800 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2013-11-13 09:26:51 -0800 |
commit | f755e643e22cfcad5ebd95c88f02afe1044c1597 (patch) | |
tree | 49134cdee7fbe88cea7bea3f84f4d6769476c7a8 | |
parent | fa8a587f1448faa867982285ecfa095d5cb052d9 (diff) | |
parent | f0a0ae4d437d7c5bae9e42e0c693da26a87f64d6 (diff) | |
download | klee-f755e643e22cfcad5ebd95c88f02afe1044c1597.tar.gz |
Merge pull request #60 from MartinNowack/fix_posix
Fix build of POSIX file descriptor functions
-rw-r--r-- | runtime/POSIX/fd_32.c | 19 | ||||
-rw-r--r-- | runtime/POSIX/fd_64.c | 3 |
2 files changed, 0 insertions, 22 deletions
diff --git a/runtime/POSIX/fd_32.c b/runtime/POSIX/fd_32.c index 389d7ae8..36c5d41f 100644 --- a/runtime/POSIX/fd_32.c +++ b/runtime/POSIX/fd_32.c @@ -18,7 +18,6 @@ #endif #include "klee/Config/Version.h" -#if defined(ENV32) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 2)) #define _LARGEFILE64_SOURCE #include "fd.h" @@ -205,21 +204,3 @@ __attribute__((weak)) int open64(const char *pathname, int flags, ...) { return __fd_open(pathname, flags, mode); } - -__attribute__((weak)) off64_t lseek64(int fd, off64_t off, int whence) { - return __fd_lseek(fd, off, whence); -} - -__attribute__((weak)) int stat64(const char *path, struct stat64 *buf) { - return __fd_stat(path, buf); -} - -__attribute__((weak)) int lstat64(const char *path, struct stat64 *buf) { - return __fd_lstat(path, buf); -} - -__attribute__((weak)) int fstat64(int fd, struct stat64 *buf) { - return __fd_fstat(fd, buf); -} - -#endif diff --git a/runtime/POSIX/fd_64.c b/runtime/POSIX/fd_64.c index 21a986aa..03fccc49 100644 --- a/runtime/POSIX/fd_64.c +++ b/runtime/POSIX/fd_64.c @@ -17,7 +17,6 @@ #include "klee/Config/Version.h" -#if defined(ENV64) || (LLVM_VERSION_CODE < LLVM_VERSION(3, 2)) #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include "fd.h" @@ -113,5 +112,3 @@ int getdents64(unsigned int fd, struct dirent *dirp, unsigned int count) { } int __getdents64(unsigned int fd, struct dirent *dirp, unsigned int count) __attribute__((alias("getdents64"))); - -#endif |