1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-08 12:01:56 +00:00

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
This commit is contained in:
John Marino 2015-11-13 08:27:48 +00:00
parent 4719581d0c
commit 7e0ac7ffb7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=401485

View File

@ -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__)