diff options
author | John Marino <marino@FreeBSD.org> | 2015-11-13 16:27:48 +0800 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2015-11-13 16:27:48 +0800 |
commit | 7e0ac7ffb761ba0d74aab359335c9c9d996dbc65 (patch) | |
tree | f3b62e4046945d57e655120bceca86204ad072ce /archivers | |
parent | 4719581d0c957698bf02faf5687672902cab9083 (diff) | |
download | freebsd-ports-gnome-7e0ac7ffb761ba0d74aab359335c9c9d996dbc65.tar.gz freebsd-ports-gnome-7e0ac7ffb761ba0d74aab359335c9c9d996dbc65.tar.zst freebsd-ports-gnome-7e0ac7ffb761ba0d74aab359335c9c9d996dbc65.zip |
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
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/py-liblzma/files/patch-src_liblzma.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/archivers/py-liblzma/files/patch-src_liblzma.h b/archivers/py-liblzma/files/patch-src_liblzma.h new file mode 100644 index 000000000000..a3e52adfb42b --- /dev/null +++ b/archivers/py-liblzma/files/patch-src_liblzma.h @@ -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__) |