From 5dd15a3c45c650fbe99b32dffa305b72f322d6c1 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 20 Aug 2008 01:05:41 +0000 Subject: [PATCH] Fix test failure on Linux. llvm-svn: 55032 --- clang/test/Sema/format-strings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index 2d6e719e3ad0..ec070a291b12 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -1,5 +1,8 @@ // RUN: clang -fsyntax-only -verify %s +// Define this to get vasprintf on Linux +#define _GNU_SOURCE + #include #include