Date: Fri, 13 Nov 2015 08:27:48 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401485 - head/archivers/py-liblzma/files Message-ID: <201511130827.tAD8RmY0091604@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Fri Nov 13 08:27:48 2015 New Revision: 401485 URL: https://svnweb.freebsd.org/changeset/ports/401485 Log: archivers/py-liblzma: Fix horrible malloc.h handling The source was including <stdlib.h>, then checking if system is FreeBSD (among a long list of system) in order to include <stdlib.h> again instead of <malloc.h>, never minding that "opting-in" for a standard. Just patch out the whole macro mess, it's not needed and it fixes the build on a malloc.h-less DragonFly Approved by: just fix it Added: head/archivers/py-liblzma/files/patch-src_liblzma.h (contents, props changed) Added: head/archivers/py-liblzma/files/patch-src_liblzma.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/py-liblzma/files/patch-src_liblzma.h Fri Nov 13 08:27:48 2015 (r401485) @@ -0,0 +1,16 @@ +--- src/liblzma.h.orig 2010-02-20 23:07:31 UTC ++++ src/liblzma.h +@@ -8,13 +8,6 @@ + #include <Python.h> + #include <stdio.h> + #include <stdlib.h> +-#if defined (__APPLE__) || defined(__FreeBSD__) || \ +- defined(__OpenBSD__) || defined(__NetBSD__) || \ +- defined (__sun) || defined (__svr4__) +-#include <stdlib.h> +-#else +-#include <malloc.h> +-#endif + #include <string.h> + #include <inttypes.h> + #if !defined(linux) && !defined(__sun) && !defined(__svr4__)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511130827.tAD8RmY0091604>