Fix debug build for programs including fitz/context.h.
Details at https://bugs.ghostscript.com/show_bug.cgi?id=698353. OK sthen@
This commit is contained in:
parent
d2fa134bcf
commit
19b0b09fc5
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.75 2017/08/03 17:47:07 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.76 2017/08/14 09:59:07 pirofti Exp $
|
||||
|
||||
SHARED_LIBS += mupdf 6.0
|
||||
|
||||
COMMENT = graphic library, pdf parser, viewer and utilities
|
||||
|
||||
V = 1.11
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
DISTNAME = mupdf-$V-source
|
||||
PKGNAME = mupdf-$V
|
||||
|
||||
|
17
textproc/mupdf/patches/patch-include_mupdf_fitz_context_h
Normal file
17
textproc/mupdf/patches/patch-include_mupdf_fitz_context_h
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-include_mupdf_fitz_context_h,v 1.1 2017/08/14 09:59:07 pirofti Exp $
|
||||
|
||||
Fix DEBUG builds for programs that include this header.
|
||||
See https://bugs.ghostscript.com/show_bug.cgi?id=698353.
|
||||
|
||||
Index: include/mupdf/fitz/context.h
|
||||
--- include/mupdf/fitz/context.h.orig
|
||||
+++ include/mupdf/fitz/context.h
|
||||
@@ -570,7 +570,7 @@ extern fz_alloc_context fz_alloc_default;
|
||||
/* Default locks */
|
||||
extern fz_locks_context fz_locks_default;
|
||||
|
||||
-#if defined(MEMENTO) || !defined(NDEBUG)
|
||||
+#if defined(MEMENTO)
|
||||
#define FITZ_DEBUG_LOCKING
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user