summaryrefslogtreecommitdiffstats
path: root/base/safe_strerror_posix.cc
diff options
context:
space:
mode:
authorcraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-10 12:03:14 +0000
committercraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-10 12:03:14 +0000
commit7c37ba9db606a6cc828be8f98b6f16d9b6c6a0b0 (patch)
tree4fc4fd44b2f127d1c8c65811aff3d5745767d505 /base/safe_strerror_posix.cc
parenta60cb618103a377937c3007ef7b8a515211397d6 (diff)
downloadchromium_src-7c37ba9db606a6cc828be8f98b6f16d9b6c6a0b0.zip
chromium_src-7c37ba9db606a6cc828be8f98b6f16d9b6c6a0b0.tar.gz
chromium_src-7c37ba9db606a6cc828be8f98b6f16d9b6c6a0b0.tar.bz2
linux: include stdio.h for snprintf
Fixes the following error with gcc-4.4 on Ubuntu: base/safe_strerror_posix.cc: In function ‘void wrap_posix_strerror_r(int (*)(int, char*, size_t), int, char*, size_t)’: base/safe_strerror_posix.cc:86: error: ‘snprintf’ was not declared in this scope Patch by Joel Stanley <joel@jms.id.au> Review URL: http://codereview.chromium.org/269046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/safe_strerror_posix.cc')
-rw-r--r--base/safe_strerror_posix.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/safe_strerror_posix.cc b/base/safe_strerror_posix.cc
index 008b785..68b2fca 100644
--- a/base/safe_strerror_posix.cc
+++ b/base/safe_strerror_posix.cc
@@ -5,6 +5,7 @@
#include "base/safe_strerror_posix.h"
#include <errno.h>
+#include <stdio.h>
#include <string.h>
#if defined(__GLIBC__) && defined(__GNUC__)