From 3f64c1ecb7ad1d141d1652ac24b8a61d29afb1a5 Mon Sep 17 00:00:00 2001 From: Kai Schwenzfeier Date: Fri, 4 Nov 2005 17:31:20 +0000 Subject: [PATCH] Kai Schwenzfeier: gperf: fix some minor declaration bug, needed for gcc40 [2005102316074031409] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6567 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/gperf/code_fix_gcc40.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/base/gperf/code_fix_gcc40.patch diff --git a/package/base/gperf/code_fix_gcc40.patch b/package/base/gperf/code_fix_gcc40.patch new file mode 100644 index 000000000..ffb517904 --- /dev/null +++ b/package/base/gperf/code_fix_gcc40.patch @@ -0,0 +1,22 @@ +--- ./src/positions.h~ 2003-04-07 11:48:19.000000000 +0200 ++++ ./src/positions.h 2005-10-23 16:00:30.000000000 +0200 +@@ -71,15 +71,15 @@ + bool sort (); + + /* Creates an iterator, returning the positions in descending order. */ +- PositionIterator iterator () const; ++ class PositionIterator iterator () const; + /* Creates an iterator, returning the positions in descending order, + that apply to strings of length <= maxlen. */ +- PositionIterator iterator (int maxlen) const; ++ class PositionIterator iterator (int maxlen) const; + /* Creates an iterator, returning the positions in ascending order. */ +- PositionReverseIterator reviterator () const; ++ class PositionReverseIterator reviterator () const; + /* Creates an iterator, returning the positions in ascending order, + that apply to strings of length <= maxlen. */ +- PositionReverseIterator reviterator (int maxlen) const; ++ class PositionReverseIterator reviterator (int maxlen) const; + + /* Set operations. Assumes the array is in reverse order. */ + bool contains (int pos) const;