From 9809b01bdb320b6419fe42f4cd76a0fa5367cd3c Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 20 Jan 2016 08:39:57 +0000 Subject: [PATCH] stop using malloc.h; these patches are a bit of a hack, but upstream's next release properly deals with it (as confirmed by landry@). discussed with landry@ --- .../patches/patch-mozilla_config_system-headers | 17 +++++++++++++---- .../patch-mozilla_media_libav_config_unix_h | 16 ++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 www/seamonkey/patches/patch-mozilla_media_libav_config_unix_h diff --git a/www/seamonkey/patches/patch-mozilla_config_system-headers b/www/seamonkey/patches/patch-mozilla_config_system-headers index 84e74ebf71d..44e55bdbedc 100644 --- a/www/seamonkey/patches/patch-mozilla_config_system-headers +++ b/www/seamonkey/patches/patch-mozilla_config_system-headers @@ -1,11 +1,12 @@ -$OpenBSD: patch-mozilla_config_system-headers,v 1.3 2015/10/16 20:02:02 dcoppa Exp $ +$OpenBSD: patch-mozilla_config_system-headers,v 1.4 2016/01/20 08:39:57 jasper Exp $ Fix building with freetype>=2.6.1 - https://hg.mozilla.org/mozilla-central/rev/af40750720b5 ---- mozilla/config/system-headers.orig Fri Oct 16 21:41:20 2015 -+++ mozilla/config/system-headers Fri Oct 16 21:41:53 2015 +Stop using malloc.h. + +--- mozilla/config/system-headers.orig Wed Nov 4 02:56:15 2015 ++++ mozilla/config/system-headers Thu Jan 14 18:11:28 2016 @@ -455,6 +455,7 @@ frame/log.h frame/req.h freetype/freetype.h @@ -14,3 +15,11 @@ https://hg.mozilla.org/mozilla-central/rev/af40750720b5 freetype/ftglyph.h freetype/ftsynth.h freetype/ftoutln.h +@@ -708,7 +709,6 @@ MacMemory.h + MacTCP.h + MacTypes.h + MacWindows.h +-malloc.h + malloc_np.h + map + mapicode.h diff --git a/www/seamonkey/patches/patch-mozilla_media_libav_config_unix_h b/www/seamonkey/patches/patch-mozilla_media_libav_config_unix_h new file mode 100644 index 00000000000..cb764d059c3 --- /dev/null +++ b/www/seamonkey/patches/patch-mozilla_media_libav_config_unix_h @@ -0,0 +1,16 @@ +$OpenBSD: patch-mozilla_media_libav_config_unix_h,v 1.1 2016/01/20 08:39:57 jasper Exp $ + +Stop using malloc.h on OpenBSD. + +--- mozilla/media/libav/config_unix.h.orig Thu Jan 14 19:35:51 2016 ++++ mozilla/media/libav/config_unix.h Thu Jan 14 19:36:05 2016 +@@ -144,7 +144,9 @@ + #define HAVE_MACH_MACH_TIME_H 0 + #define HAVE_MACHINE_IOCTL_BT848_H 0 + #define HAVE_MACHINE_IOCTL_METEOR_H 0 ++#ifndef __OpenBSD__ + #define HAVE_MALLOC_H 1 ++#endif + #define HAVE_POLL_H 1 + #define HAVE_SNDIO_H 0 + #define HAVE_SOUNDCARD_H 0