[supertux] include cstddef header to fix build

Nils Philippsen nphilipp at fedoraproject.org
Thu Jun 30 11:41:46 UTC 2011


commit cc00ea9673c98f24c1c6e49de852a03168d48383
Author: Nils Philippsen <nils at redhat.com>
Date:   Thu Jun 30 13:40:47 2011 +0200

    include cstddef header to fix build

 supertux-0.3.3-cstddef.patch |   11 +++++++++++
 supertux.spec                |    5 +++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/supertux-0.3.3-cstddef.patch b/supertux-0.3.3-cstddef.patch
new file mode 100644
index 0000000..6f557ac
--- /dev/null
+++ b/supertux-0.3.3-cstddef.patch
@@ -0,0 +1,11 @@
+diff -up supertux-0.3.3/src/supertux/screen_manager.hpp.cstddef supertux-0.3.3/src/supertux/screen_manager.hpp
+--- supertux-0.3.3/src/supertux/screen_manager.hpp.cstddef	2010-03-01 13:40:58.000000000 +0100
++++ supertux-0.3.3/src/supertux/screen_manager.hpp	2011-06-30 11:05:35.617530353 +0200
+@@ -18,6 +18,7 @@
+ #define HEADER_SUPERTUX_SUPERTUX_MAINLOOP_HPP
+ 
+ #include <memory>
++#include <cstddef>
+ 
+ #include "scripting/thread_queue.hpp"
+ 
diff --git a/supertux.spec b/supertux.spec
index 67f9bf0..fa053f1 100644
--- a/supertux.spec
+++ b/supertux.spec
@@ -9,6 +9,7 @@ Source0:        http://download.berlios.de/supertux/supertux-%{version}.tar.bz2
 Patch0:         supertux-0.3.3-desktop.patch
 Patch1:         supertux-0.3.3-system-squirrel.patch
 Patch2:         supertux-0.3.3-curl.patch
+Patch3:         supertux-0.3.3-cstddef.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  SDL-devel >= 1.2.4
 BuildRequires:  SDL_image-devel
@@ -41,6 +42,7 @@ Grabbing power-ups and other stuff on the way.
 %patch0 -p1 -b .desktop
 %patch1 -p1 -b .system-squirrel
 %patch2 -p1 -b .curl
+%patch3 -p1 -b .cstddef
 
 
 %build
@@ -93,6 +95,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Jun 30 2011 Nils Philippsen <nils at redhat.com> - 0.3.3-3
+- include cstddef header to fix build
+
 * Wed Jun 29 2011 Nils Philippsen <nils at redhat.com> - 0.3.3-3
 - fix building with current libcurl
 


More information about the scm-commits mailing list