aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-09-20 00:15:30 +0800
committerwg <wg@FreeBSD.org>2013-09-20 00:15:30 +0800
commit98cccfe8357268afaa3c0843efe0249ffb34c6d8 (patch)
tree65ac895f0c4a48cd634d57b0db7fb389b75dd848 /security
parent130cd7f25fe6a9d3b2b5bb786367aa8d0b50ac5f (diff)
downloadfreebsd-ports-gnome-98cccfe8357268afaa3c0843efe0249ffb34c6d8.tar.gz
freebsd-ports-gnome-98cccfe8357268afaa3c0843efe0249ffb34c6d8.tar.zst
freebsd-ports-gnome-98cccfe8357268afaa3c0843efe0249ffb34c6d8.zip
security/yapet: fix build on CURRENT
- Fix build on CURRENT PR: ports/182211 Submitted by: Rafael Ostertag <rafi guengel.ch> (maintainer)
Diffstat (limited to 'security')
-rw-r--r--security/yapet/files/patch-ui-basewindow.cc13
-rw-r--r--security/yapet/files/patch-ui-secstring.h11
2 files changed, 24 insertions, 0 deletions
diff --git a/security/yapet/files/patch-ui-basewindow.cc b/security/yapet/files/patch-ui-basewindow.cc
new file mode 100644
index 000000000000..b92129d9a538
--- /dev/null
+++ b/security/yapet/files/patch-ui-basewindow.cc
@@ -0,0 +1,13 @@
+--- ui/basewindow.cc.orig 2013-09-17 22:04:34.000000000 +0200
++++ ui/basewindow.cc 2013-09-17 22:05:18.000000000 +0200
+@@ -33,6 +33,10 @@
+ # include <stdio.h>
+ #endif
+
++#ifdef HAVE_STDLIB_H
++# include <stdlib.h>
++#endif
++
+ #ifdef HAVE_ALGORITHM
+ # include <algorithm>
+ #endif
diff --git a/security/yapet/files/patch-ui-secstring.h b/security/yapet/files/patch-ui-secstring.h
new file mode 100644
index 000000000000..842d7db0290c
--- /dev/null
+++ b/security/yapet/files/patch-ui-secstring.h
@@ -0,0 +1,11 @@
+--- ui/secstring.h.orig 2013-09-18 19:44:08.000000000 +0200
++++ ui/secstring.h 2013-09-18 19:44:30.000000000 +0200
+@@ -61,7 +61,7 @@
+ public:
+ void deallocate (typename std::allocator<T>::pointer p,
+ typename std::allocator<T>::size_type n) {
+- memset (p, '0', n*sizeof (std::allocator<T>::value_type) );
++ memset (p, '0', n*sizeof (typename std::allocator<T>::value_type) );
+ std::allocator<T>::deallocate (p, n);
+ }
+