File: fix-gcc-4.6-ftbfs.patch

package info (click to toggle)
htmlcxx 0.87-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,404 kB
  • sloc: sh: 4,380; cpp: 4,354; yacc: 526; ansic: 205; lex: 159; makefile: 47; perl: 27
file content (17 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Ludovico Cavedon <cavedon@debian.org>
Description: Fix compilation with GCC 4.6
Forwarded: yes

Index: htmlcxx/html/tree.h
===================================================================
--- htmlcxx.orig/html/tree.h
+++ htmlcxx/html/tree.h
@@ -116,7 +116,7 @@ class tree {
             typedef T*                              pointer;
             typedef T&                              reference;
             typedef size_t                          size_type;
-            typedef ptrdiff_t                       difference_type;
+            typedef std::ptrdiff_t                  difference_type;
             typedef std::bidirectional_iterator_tag iterator_category;
 
             iterator_base();