[djvulibre] add include cstddefs for size_t
Karsten Hopp
karsten at fedoraproject.org
Mon Jan 31 13:30:00 UTC 2011
commit 481e292e47cd6165eaff656f81e82b63c3896114
Author: Karsten Hopp <karsten at redhat.com>
Date: Mon Jan 31 14:26:28 2011 +0100
add include cstddefs for size_t
djvulibre-3.5.22-cdefs.patch | 12 ++++++++++++
djvulibre.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/djvulibre-3.5.22-cdefs.patch b/djvulibre-3.5.22-cdefs.patch
new file mode 100644
index 0000000..d62ef08
--- /dev/null
+++ b/djvulibre-3.5.22-cdefs.patch
@@ -0,0 +1,12 @@
+diff -up djvulibre-3.5.22/libdjvu/GSmartPointer.h.cdefs djvulibre-3.5.22/libdjvu/GSmartPointer.h
+--- djvulibre-3.5.22/libdjvu/GSmartPointer.h.cdefs 2008-03-05 01:44:20.000000000 +0000
++++ djvulibre-3.5.22/libdjvu/GSmartPointer.h 2011-01-31 13:43:37.595917364 +0000
+@@ -65,6 +65,8 @@
+ # pragma interface
+ #endif
+
++#include <cstddef>
++
+ /** @name GSmartPointer.h
+
+ Files #"GSmartPointer.h"# and #"GSmartPointer.cpp"# define a smart-pointer
diff --git a/djvulibre.spec b/djvulibre.spec
index 46da09d..255ff81 100644
--- a/djvulibre.spec
+++ b/djvulibre.spec
@@ -1,11 +1,12 @@
Summary: DjVu viewers, encoders, and utilities
Name: djvulibre
Version: 3.5.22
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/Publishing
URL: http://djvu.sourceforge.net/
Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz
+Patch0: djvulibre-3.5.22-cdefs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): xdg-utils, /sbin/ldconfig
Requires(preun): xdg-utils
@@ -59,6 +60,7 @@ Development files for DjVuLibre.
%prep
%setup -q
+%patch0 -p1 -b .cdefs
# Convert ISO8859-1 ja man pages to UTF-8 (still as of 3.5.20-2)
#for manpage in i18n/ja/*.1*; do
@@ -159,6 +161,9 @@ fi
%changelog
+* Mon Jan 31 2011 Karsten Hopp <karsten at redhat.com> 3.5.22-2
+- add include cstddefs for size_t
+
* Mon Nov 30 2009 Ralesh Pandit <rakesh at fedoraproject.org> 3.5.22-1
- Updated to 3.5.22 (#542221) (Spec patch by Michal Schmidt)
More information about the scm-commits
mailing list