aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-08-06 15:56:13 +0800
committerantoine <antoine@FreeBSD.org>2014-08-06 15:56:13 +0800
commitc993f6bafcf10c90bdeafd66c8f1d1aaa2050840 (patch)
tree1facf49a026cc80135500c1933b948c93ff8cc43 /devel
parentcb6153da97c74807fb11c0f0e389173c10514ea7 (diff)
downloadfreebsd-ports-gnome-c993f6bafcf10c90bdeafd66c8f1d1aaa2050840.tar.gz
freebsd-ports-gnome-c993f6bafcf10c90bdeafd66c8f1d1aaa2050840.tar.zst
freebsd-ports-gnome-c993f6bafcf10c90bdeafd66c8f1d1aaa2050840.zip
Fix build with clang and newer texinfo
Phabric: D478 Submitted by: kan Reviewed by: bapt and i
Diffstat (limited to 'devel')
-rw-r--r--devel/ddd/files/patch-ddd-ddd.texi34
-rw-r--r--devel/ddd/files/patch-ddd-strclass.h41
2 files changed, 75 insertions, 0 deletions
diff --git a/devel/ddd/files/patch-ddd-ddd.texi b/devel/ddd/files/patch-ddd-ddd.texi
new file mode 100644
index 000000000000..a0672798eb0a
--- /dev/null
+++ b/devel/ddd/files/patch-ddd-ddd.texi
@@ -0,0 +1,34 @@
+--- ddd/ddd.texi.orig 2009-02-11 17:25:07 +0000
++++ ddd/ddd.texi
+@@ -1,4 +1,4 @@
+-\def\postscript{}\input texinfo @c -*- texinfo -*-
++\def\postscript\input texinfo @c -*- texinfo -*-
+ @c $Id$
+ @c DDD Manual
+
+@@ -154,7 +154,7 @@
+ @c The title page.
+ @ifnothtml
+ @titlepage
+-@sp -7
++@sp 7
+ @ifnottex
+ @title Debugging with @value{DDD}
+ @subtitle User's Guide and Reference Manual
+--- ddd/ddd-themes.texi.orig 2009-02-11 17:25:07 +0000
++++ ddd/ddd-themes.texi
+@@ -1,4 +1,4 @@
+-\def\postscript{}\input texinfo @c -*- texinfo -*-
++\def\postscript\input texinfo @c -*- texinfo -*-
+ @c $Id$
+ @c Writing DDD Themes
+
+@@ -136,7 +136,7 @@
+ @c The title page.
+ @ifnothtml
+ @titlepage
+-@sp -7
++@sp 7
+ @ifnottex
+ @title Writing @value{DDD} Themes
+ @subtitle User's Guide and Reference Manual
diff --git a/devel/ddd/files/patch-ddd-strclass.h b/devel/ddd/files/patch-ddd-strclass.h
new file mode 100644
index 000000000000..c37be0ed534e
--- /dev/null
+++ b/devel/ddd/files/patch-ddd-strclass.h
@@ -0,0 +1,41 @@
+--- ddd/strclass.h.orig 2009-02-11 17:25:06 +0000
++++ ddd/strclass.h
+@@ -811,9 +811,9 @@
+ const regex& sep);
+
+ friend string common_prefix(const string& x, const string& y,
+- int startpos = 0);
++ int startpos);
+ friend string common_suffix(const string& x, const string& y,
+- int startpos = -1);
++ int startpos);
+ friend string replicate(char c, int n);
+ friend string replicate(const string& y, int n);
+ friend string join(const string *src, int n, const string& sep);
+@@ -864,8 +864,8 @@
+ friend std::istream& operator>>(std::istream& s, string& x);
+
+ friend int readline(std::istream& s, string& x,
+- char terminator = '\n',
+- int discard_terminator = 1);
++ char terminator,
++ int discard_terminator);
+
+ // Status
+ unsigned int length() const;
+@@ -892,6 +892,15 @@
+ typedef string strTmp; // for backward compatibility
+ #endif
+
++string common_prefix(const string& x, const string& y,
++ int startpos = 0);
++string common_suffix(const string& x, const string& y,
++ int startpos = -1);
++
++int readline(std::istream& s, string& x,
++ char terminator = '\n',
++ int discard_terminator = 1);
++
+ // Other externs
+
+ int compare(const string& x, const string& y);