svn commit: r432036 - head/textproc/lowdown/files

Baptiste Daroussin bapt at FreeBSD.org
Sat Jan 21 13:46:37 UTC 2017


Author: bapt
Date: Sat Jan 21 13:46:35 2017
New Revision: 432036
URL: https://svnweb.freebsd.org/changeset/ports/432036

Log:
  Fix build on FreeBSD 10

Added:
  head/textproc/lowdown/files/patch-xmalloc.c   (contents, props changed)
Modified:
  head/textproc/lowdown/files/patch-Makefile

Modified: head/textproc/lowdown/files/patch-Makefile
==============================================================================
--- head/textproc/lowdown/files/patch-Makefile	Sat Jan 21 13:22:51 2017	(r432035)
+++ head/textproc/lowdown/files/patch-Makefile	Sat Jan 21 13:46:35 2017	(r432036)
@@ -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

Added: head/textproc/lowdown/files/patch-xmalloc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/lowdown/files/patch-xmalloc.c	Sat Jan 21 13:46:35 2017	(r432036)
@@ -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


More information about the svn-ports-head mailing list