openbsd-ports/mail/pecl-mailparse/patches/patch-mailparse_c
sthen 86e8b2d393 import pecl-mailparse.
Mailparse is a PHP extension for parsing and working with
plain and MIME compliant email messages. It is stream based,
so does not keep in-memory copies of the files it processes,
lowering resource use with large messages.
2009-04-28 15:55:07 +00:00

17 lines
573 B
Plaintext

$OpenBSD: patch-mailparse_c,v 1.1.1.1 2009/04/28 15:55:07 sthen Exp $
not pretty, but mbstring is only installed as an option rather
than in php5-core, so we need a little hack to pick up the headers.
--- mailparse.c.orig Tue Mar 3 22:24:04 2009
+++ mailparse.c Tue Apr 28 15:44:12 2009
@@ -28,6 +28,8 @@
#include "ext/standard/info.h"
#include "main/php_output.h"
#include "php_open_temporary_file.h"
+#define HAVE_MBSTRING 1
+#include "../php/ext/mbstring/mbstring.h"
/* just in case the config check doesn't enable mbstring automatically */
#if !HAVE_MBSTRING