[Mesa-dev] [PATCH] mesa: include stdarg.h for va_list

Jonathan Gray jsg at jsg.id.au
Wed Jul 15 08:17:37 PDT 2015


Include stdarg.h for va_list.  Unbreaks the build on OpenBSD:

In file included from mesa/program/dummy_errors.c:24:
../src/mesa/main/errors.h:85: error: expected declaration specifiers or '...' be
fore 'va_list'

Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
---
 src/mesa/main/errors.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h
index 24f234f..81e47a8 100644
--- a/src/mesa/main/errors.h
+++ b/src/mesa/main/errors.h
@@ -37,6 +37,7 @@
 
 
 #include <stdio.h>
+#include <stdarg.h>
 #include "compiler.h"
 #include "glheader.h"
 #include "mtypes.h"
-- 
2.4.5



More information about the mesa-dev mailing list