From b9fd45579e09556483c6738aea03f5c4cc450a9f Mon Sep 17 00:00:00 2001
From: Serge Petrenko <sergepetrenko@tarantool.org>
Date: Mon, 8 Aug 2022 15:54:04 +0300
Subject: [PATCH] test: make unit.h self sufficient

Unit test compilation with `#define UNIT_TAP_COMPATIBLE 1` might fail
with an error complaining that <stdarg.h> is not included. Fix this.

In-scope-of #4264

NO_CHANGELOG=testing stuff
NO_DOC=testing stuff
---
 test/unit/unit.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/unit/unit.h b/test/unit/unit.h
index 15e11e7147..bd1c194ee9 100644
--- a/test/unit/unit.h
+++ b/test/unit/unit.h
@@ -136,6 +136,8 @@ int check_plan(void);
 
 #if UNIT_TAP_COMPATIBLE
 
+#include <stdarg.h> /* va_start(), va_end() */
+
 #define header()					\
 	do { 						\
 		_space(stdout);				\
-- 
GitLab