about summary refs log tree commit diff homepage
path: root/test/Runtime
diff options
context:
space:
mode:
authorLukas Zaoral <lzaoral@redhat.com>2021-10-14 16:24:43 +0200
committerCristian Cadar <c.cadar@imperial.ac.uk>2021-10-17 22:32:56 +0100
commit5ee3a54001fe4291a0a5c3ce3beb33f856836cbb (patch)
treed11ab9c581a8121ecd8aab3e47b9c782e63ba0a3 /test/Runtime
parent89f74ea9551f3dbfbf27c6f905d7733b96280571 (diff)
downloadklee-5ee3a54001fe4291a0a5c3ce3beb33f856836cbb.tar.gz
test/Runtime/POSIX/Futimesat: futimesat(2) requires _GNU_SOURCE on glibc platforms
Diffstat (limited to 'test/Runtime')
-rw-r--r--test/Runtime/POSIX/Futimesat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Runtime/POSIX/Futimesat.c b/test/Runtime/POSIX/Futimesat.c
index 4b059963..117b789e 100644
--- a/test/Runtime/POSIX/Futimesat.c
+++ b/test/Runtime/POSIX/Futimesat.c
@@ -12,6 +12,10 @@
 // RUN: rm -rf %t.klee-out
 // RUN: %klee --output-dir=%t.klee-out --posix-runtime --exit-on-error %t2.bc --sym-files 1 10
 
+// According to https://man7.org/linux/man-pages/man2/futimesat.2.html
+// _GNU_SOURCE should be defined for glibc.
+#define _GNU_SOURCE
+
 #include <assert.h>
 #include <fcntl.h>
 #include <sys/stat.h>