~ubuntu-branches/ubuntu/precise/pingus/precise

« back to all changes in this revision

Viewing changes to debian/patches/70_gcc41.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Martin Michlmayr
  • Date: 2006-05-25 22:51:25 UTC
  • mfrom: (3.1.2 dapper)
  • Revision ID: james.westby@ubuntu.com-20060525225125-0cyml94ypvbd3z8n
Tags: 0.6.0-8.4
* NMU as part of the GCC 4.1 transition.
* patches/51_gcc41.dpatch: Include cassert. (Closes: #356455).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
## 51_gcc41.dpatch by Martin Michlmayr
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Get source building with GCC 4.1  (bug #356455)
 
6
 
 
7
if [ $# -lt 1 ]; then
 
8
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
9
    exit 1
 
10
fi
 
11
 
 
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
 
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
 
14
 
 
15
case "$1" in
 
16
       -patch) patch $patch_opts -p1 < $0;;
 
17
       -unpatch) patch $patch_opts -p1 -R < $0;;
 
18
        *)
 
19
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
20
                exit 1;;
 
21
esac
 
22
 
 
23
exit 0
 
24
 
 
25
@DPATCH@
 
26
--- a/src/worldmap/graph.hxx~   2006-03-12 04:18:22.000000000 +0000
 
27
+++ b/src/worldmap/graph.hxx    2006-03-12 04:19:19.000000000 +0000
 
28
@@ -23,6 +23,7 @@
 
29
 #include <algorithm>
 
30
 #include <vector>
 
31
 #include <iostream>
 
32
+#include <cassert>
 
33
 
 
34
 namespace WorldMapNS {
 
35