add stdio.h for sprintf, perror, etc

This commit is contained in:
Caolan McNamara 2009-03-01 10:36:00 +00:00
parent 8b389374cb
commit bbf15c1ecd
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,33 @@
diff -ru protobuf-2.0.2.orig/src/google/protobuf/compiler/command_line_interface.cc protobuf-2.0.2/src/google/protobuf/compiler/command_line_interface.cc
--- protobuf-2.0.2.orig/src/google/protobuf/compiler/command_line_interface.cc 2009-03-01 10:14:52.000000000 +0000
+++ protobuf-2.0.2/src/google/protobuf/compiler/command_line_interface.cc 2009-03-01 10:27:11.000000000 +0000
@@ -44,6 +44,7 @@
#include <errno.h>
#include <iostream>
#include <ctype.h>
+#include <stdio.h>
#include <google/protobuf/compiler/command_line_interface.h>
#include <google/protobuf/compiler/importer.h>
diff -ru protobuf-2.0.2.orig/src/google/protobuf/stubs/strutil.cc protobuf-2.0.2/src/google/protobuf/stubs/strutil.cc
--- protobuf-2.0.2.orig/src/google/protobuf/stubs/strutil.cc 2009-03-01 10:14:52.000000000 +0000
+++ protobuf-2.0.2/src/google/protobuf/stubs/strutil.cc 2009-03-01 10:15:40.000000000 +0000
@@ -35,6 +35,7 @@
#include <float.h> // FLT_DIG and DBL_DIG
#include <limits>
#include <limits.h>
+#include <stdio.h>
#ifdef _WIN32
// MSVC has only _snprintf, not snprintf.
diff -ru protobuf-2.0.2.orig/src/google/protobuf/text_format.cc protobuf-2.0.2/src/google/protobuf/text_format.cc
--- protobuf-2.0.2.orig/src/google/protobuf/text_format.cc 2009-03-01 10:14:52.000000000 +0000
+++ protobuf-2.0.2/src/google/protobuf/text_format.cc 2009-03-01 10:23:07.000000000 +0000
@@ -36,6 +36,7 @@
#include <math.h>
#include <stack>
#include <limits>
+#include <stdio.h>
#include <google/protobuf/text_format.h>

View File

@ -13,7 +13,7 @@
Summary: Protocol Buffers - Google's data interchange format
Name: protobuf
Version: 2.0.2
Release: 7%{?dist}
Release: 8%{?dist}
License: BSD
Group: Development/Libraries
Source: http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
@ -23,6 +23,7 @@ Patch0: protobuf-pkgconfig-autotools.patch
Patch1: protobuf-fedora-gtest.patch
Patch2: protobuf-java-notests.patch
Patch3: protobuf-gcc-4.3.0.patch
Patch4: protobuf-2.0.2-includes.patch
URL: http://code.google.com/p/protobuf/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: automake autoconf libtool pkgconfig
@ -143,6 +144,7 @@ chmod 644 examples/*
rm -rf java/src/test
%endif
%patch3 -p0
%patch4 -p1
%build
./autogen.sh
@ -266,6 +268,9 @@ rm -rf %{buildroot}
%endif
%changelog
* Sun Mar 01 2009 Caolán McNamra <caolanm@redhat.com> - 2.0.2-8
- add stdio.h for sprintf, perror, etc.
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild