[PATCH] include stdio for snprintf

Ben Gamari bgamari at gmail.com
Wed Feb 18 08:43:00 PST 2009


On my machine (Fedora Rawhide), piglit wouldn't build without
including stdio.h in glean's environ.cpp for snprint().
---
 tests/glean/environ.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/glean/environ.cpp b/tests/glean/environ.cpp
index fac0f66..a154a03 100644
--- a/tests/glean/environ.cpp
+++ b/tests/glean/environ.cpp
@@ -32,6 +32,7 @@
 // environ.cpp:  implementation of test environment class
 
 #include "environ.h"
+#include <stdio.h>
 
 #if defined(__UNIX__)
 #include <sys/stat.h>
-- 
1.6.1.3




More information about the xorg mailing list