Bug 674468 glxtest.cpp fails to compile with Solaris Studio r=karlt
authorGinn Chen <ginn.chen@oracle.com>
Tue, 30 Aug 2011 13:27:19 +0800
changeset 76052 9e28008d9d1f2221334cf5906835257445620565
parent 76051 7653363bd293922904e7b60e26d4bc725afd5130
child 76053 d48ac4bbb8e608cd0ef9a949f144eb7b95069c22
push id1558
push userginn.chen@oracle.com
push dateTue, 30 Aug 2011 05:28:42 +0000
treeherdermozilla-inbound@9e28008d9d1f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs674468
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 674468 glxtest.cpp fails to compile with Solaris Studio r=karlt
toolkit/xre/glxtest.cpp
--- a/toolkit/xre/glxtest.cpp
+++ b/toolkit/xre/glxtest.cpp
@@ -54,16 +54,20 @@
 #include <cstdio>
 #include <cstdlib>
 #include <unistd.h>
 #include <GL/gl.h>
 #include <GL/glx.h>
 #include <dlfcn.h>
 #include "nscore.h"
 
+#ifdef __SUNPRO_CC
+#include <stdio.h>
+#endif
+
 namespace mozilla {
 namespace widget {
 // the read end of the pipe, which will be used by GfxInfo
 extern int glxtest_pipe;
 // the PID of the glxtest process, to pass to waitpid()
 extern pid_t glxtest_pid;
 }
 }