Blob Blame History Raw
From 741a5a21c69cb3d93e04965add157fe94c2b28c4 Mon Sep 17 00:00:00 2001
From: Lukas Zaoral <lzaoral@redhat.com>
Date: Tue, 21 Sep 2021 09:37:33 +0200
Subject: [PATCH] test/Runtime/POSIX/Futimesat: Compile with -std=c99 so that
 'linux' is not a defined macro

Fixes #1424
---
 test/Runtime/POSIX/Futimesat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/Runtime/POSIX/Futimesat.c b/test/Runtime/POSIX/Futimesat.c
index 11ecf341..61af2805 100644
--- a/test/Runtime/POSIX/Futimesat.c
+++ b/test/Runtime/POSIX/Futimesat.c
@@ -1,6 +1,8 @@
-// RUN: %clang %s -emit-llvm %O0opt -g -c -DTDIR=%T -o %t2.bc
+// RUN: %clang %s -std=c99 -emit-llvm %O0opt -g -c -DTDIR=%T -o %t2.bc
 // RUN: touch %T/futimesat-dummy
 // RUN: rm -rf %t.klee-out
 // RUN: %klee --output-dir=%t.klee-out --posix-runtime --exit-on-error %t2.bc --sym-files 1 10
+
+#define _POSIX_C_SOURCE 200809L
 
 #include <assert.h>
-- 
2.31.1