pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/devIL devIL: don't look for malloc in malloc.h.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e8e35523c0b6
branches:  trunk
changeset: 400469:e8e35523c0b6
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Aug 28 13:12:15 2019 +0000

description:
devIL: don't look for malloc in malloc.h.

Many OSes don't have it, like OS X.

A non-ifdef version of a patch provided by clement bouvier
in PR pkg/54497

diffstat:

 devel/devIL/distinfo                          |   3 ++-
 devel/devIL/patches/patch-src-ILU_ilur_ilur.c |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r dcd4c6071f61 -r e8e35523c0b6 devel/devIL/distinfo
--- a/devel/devIL/distinfo      Wed Aug 28 10:35:40 2019 +0000
+++ b/devel/devIL/distinfo      Wed Aug 28 13:12:15 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2018/10/26 10:18:49 jperkin Exp $
+$NetBSD: distinfo,v 1.13 2019/08/28 13:12:15 maya Exp $
 
 SHA1 (DevIL-1.7.8.tar.gz) = bc27e3e830ba666a3af03548789700d10561fcb1
 RMD160 (DevIL-1.7.8.tar.gz) = a3cdb14fcca5e75ada240a53cbdc3e749a759da5
@@ -10,5 +10,6 @@
 SHA1 (patch-ad) = c8885607457c9af2d89dcf2d9e163fd224e0fa35
 SHA1 (patch-include_IL_il.h) = 553b2fbbd930ff6bab4b5bc790d13ebcccbfffba
 SHA1 (patch-lib_Makefile.in) = a2ae8d1a97f2cbd9c46b2f5923be06839dd6c64f
+SHA1 (patch-src-ILU_ilur_ilur.c) = 611f0068a98f4da6771c11c8b267cafbea7cb76a
 SHA1 (patch-src-IL_include_il__endian.h) = 25ed5f24fc871ceebb685e1c242a4c7b724142a2
 SHA1 (patch-src-IL_src_il__jp2.c) = 7474bdc6507f4a9daa42800fa626ec9ffe6892fe
diff -r dcd4c6071f61 -r e8e35523c0b6 devel/devIL/patches/patch-src-ILU_ilur_ilur.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/devIL/patches/patch-src-ILU_ilur_ilur.c     Wed Aug 28 13:12:15 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src-ILU_ilur_ilur.c,v 1.1 2019/08/28 13:12:15 maya Exp $
+
+Don't expect a malloc.h header, lots of OSes don't have one
+(freebsd, OS X).
+
+malloc is, per standard, in stdlib.h
+
+--- src-ILU/ilur/ilur.c.orig   2009-03-08 07:10:12.000000000 +0000
++++ src-ILU/ilur/ilur.c
+@@ -1,6 +1,6 @@
+ #include <string.h>
+ #include <stdio.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ 
+ #include <IL/il.h>
+ #include <IL/ilu.h>



Home | Main Index | Thread Index | Old Index