about summary refs log tree commit diff homepage
path: root/runtime/POSIX/illegal.c
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2019-04-14 22:36:20 +0400
committerCristian Cadar <c.cadar@imperial.ac.uk>2019-04-29 19:18:43 +0100
commit5f8541ea1bb007af182cdda6080e3e46fce8e271 (patch)
treee8c602c14d2fb4f8c0757f0c0ff4a1d8d0ff7911 /runtime/POSIX/illegal.c
parente5743af37903c32cc24180f80fe49072dbda88f6 (diff)
downloadklee-5f8541ea1bb007af182cdda6080e3e46fce8e271.tar.gz
More FreeBSD related fixes to POSIX runtime.
Diffstat (limited to 'runtime/POSIX/illegal.c')
-rw-r--r--runtime/POSIX/illegal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/POSIX/illegal.c b/runtime/POSIX/illegal.c
index 469ea623..8b8c0134 100644
--- a/runtime/POSIX/illegal.c
+++ b/runtime/POSIX/illegal.c
@@ -25,8 +25,13 @@ int kill(pid_t pid, int sig) {
   return -1;
 }
 
+#ifndef __FreeBSD__
 int _setjmp (struct __jmp_buf_tag __env[1]) __attribute__((weak));
 int _setjmp (struct __jmp_buf_tag __env[1]) {
+#else
+int _setjmp (jmp_buf env) __returns_twice;
+int _setjmp (jmp_buf env) {
+#endif
   klee_warning_once("ignoring");
   return 0;
 }