From 38b07e7a89f103dc3b690be5382b5a0d9f5aa7fe Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 23 Feb 2023 22:06:10 +0000 Subject: Fix building of runtime library and klee-replay Former build system provided additional flags for building bitcode while they were not required, e.g. under BSD or MacOS. --- tools/klee-replay/file-creator.c | 3 ++- tools/klee-replay/klee-replay.h | 2 -- tools/klee-replay/klee_init_env.c | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/klee-replay') diff --git a/tools/klee-replay/file-creator.c b/tools/klee-replay/file-creator.c index e103a39f..a1685a02 100644 --- a/tools/klee-replay/file-creator.c +++ b/tools/klee-replay/file-creator.c @@ -290,7 +290,7 @@ static int create_pipe(const char *fname, exe_disk_file_t *dfile, } } - +int futimes(int fd, const struct timeval tv[2]); static int create_reg_file(const char *fname, exe_disk_file_t *dfile, const char *tmpdir) { struct stat64 *s = dfile->stat; @@ -395,6 +395,7 @@ static void create_file(int target_fd, char replay_dir[] = "/tmp/klee-replay-XXXXXX"; +char *mkdtemp(char *template); void replay_create_files(exe_file_system_t *exe_fs) { unsigned k; diff --git a/tools/klee-replay/klee-replay.h b/tools/klee-replay/klee-replay.h index 5701caa5..47d63a47 100644 --- a/tools/klee-replay/klee-replay.h +++ b/tools/klee-replay/klee-replay.h @@ -9,11 +9,9 @@ #ifndef KLEE_REPLAY_H #define KLEE_REPLAY_H - #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 -#include "klee/Config/config.h" // FIXME: This is a hack. #include "../../runtime/POSIX/fd.h" #include diff --git a/tools/klee-replay/klee_init_env.c b/tools/klee-replay/klee_init_env.c index b0b6e912..c697975e 100644 --- a/tools/klee-replay/klee_init_env.c +++ b/tools/klee-replay/klee_init_env.c @@ -1,3 +1,4 @@ +#define _LARGEFILE64_SOURCE #include "../../runtime/POSIX/klee_init_env.c" int __klee_posix_wrapped_main(int argc, char **argv, char **envp) { return 0; } -- cgit 1.4.1