aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/format-strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r--test/Sema/format-strings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c
index 2d6e719e3a..ec070a291b 100644
--- a/test/Sema/format-strings.c
+++ b/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 <stdio.h>
#include <stdarg.h>