aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2017-01-21 21:46:35 +0800
committerbapt <bapt@FreeBSD.org>2017-01-21 21:46:35 +0800
commit5a8ec14eb3727aca2f9ff3928b8d5c0959f742f1 (patch)
tree359b4dfa66f8a0224730d0fd3ef1fed81c711b33
parent66c3aa472112836e15ce0fd2d8b3f5f1678408bf (diff)
downloadfreebsd-ports-gnome-5a8ec14eb3727aca2f9ff3928b8d5c0959f742f1.tar.gz
freebsd-ports-gnome-5a8ec14eb3727aca2f9ff3928b8d5c0959f742f1.tar.zst
freebsd-ports-gnome-5a8ec14eb3727aca2f9ff3928b8d5c0959f742f1.zip
Fix build on FreeBSD 10
-rw-r--r--textproc/lowdown/files/patch-Makefile2
-rw-r--r--textproc/lowdown/files/patch-xmalloc.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/textproc/lowdown/files/patch-Makefile b/textproc/lowdown/files/patch-Makefile
index 26c45b6d2d89..21d9923e4c45 100644
--- a/textproc/lowdown/files/patch-Makefile
+++ b/textproc/lowdown/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig 2017-01-19 23:17:59 UTC
+--- Makefile.orig 2017-01-20 14:49:54 UTC
+++ Makefile
@@ -21,7 +21,7 @@ LIBDIR = $(PREFIX)/lib
INCLUDEDIR = $(PREFIX)/include
diff --git a/textproc/lowdown/files/patch-xmalloc.c b/textproc/lowdown/files/patch-xmalloc.c
new file mode 100644
index 000000000000..05ed2c31b167
--- /dev/null
+++ b/textproc/lowdown/files/patch-xmalloc.c
@@ -0,0 +1,20 @@
+--- xmalloc.c.orig 2017-01-20 14:49:54 UTC
++++ xmalloc.c
+@@ -14,6 +14,8 @@
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
++#include <sys/param.h>
++
+ #include <err.h>
+ #include <stdarg.h>
+ #include <stdint.h>
+@@ -64,7 +66,7 @@ void *
+ xreallocarray(void *p, size_t nm, size_t sz)
+ {
+
+-#if defined(__OpenBSD__) || defined(__FreeBSD__)
++#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD_version > 1100071)
+ if ((p = reallocarray(p, nm, sz)) == NULL)
+ err(EXIT_FAILURE, NULL);
+ #else