svn commit: r401485 - head/archivers/py-liblzma/files
John Marino
marino at FreeBSD.org
Fri Nov 13 08:27:50 UTC 2015
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__)
More information about the svn-ports-all
mailing list