Bug 979913: Fix GCC warning about undeclared function |snprintf|, r=khuey
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 14 Mar 2014 11:23:50 +0100
changeset 173654 0a5e13d2c0039ab24b9573e24816ddeed1927f4e
parent 173653 8eb7a2a65dfe4bd958279faa7d377726308b8ec9
child 173655 6659e34090c966de7352c07c877ce605b7760357
push id26415
push userkwierso@gmail.com
push dateSat, 15 Mar 2014 05:20:40 +0000
treeherdermozilla-central@82c90c17fc95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs979913
milestone30.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 979913: Fix GCC warning about undeclared function |snprintf|, r=khuey
mozglue/build/cpuacct.c
--- a/mozglue/build/cpuacct.c
+++ b/mozglue/build/cpuacct.c
@@ -24,16 +24,17 @@
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
 #include <unistd.h>
 #include <errno.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <stdio.h>
 #include "cpuacct.h"
 
 int cpuacct_add(uid_t uid)
 {
     int count;
     int fd;
     char buf[80];