let glue match the compat glue in libc++, and also removes one clang

warning...

helps kdeenlive build eventually
This commit is contained in:
espie 2017-05-24 16:30:52 +00:00
parent 13efb686f0
commit 778206982e
2 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.14 2017/05/22 13:55:53 espie Exp $
# $OpenBSD: Makefile,v 1.15 2017/05/24 16:30:52 espie Exp $
COMMENT-main = multimedia transformations framework
COMMENT-gpl2 = GPLv2-licensed modules for mlt
@ -6,7 +6,7 @@ VERSION = 6.0.0
DISTNAME = mlt-${VERSION}
PKGNAME-main = ${DISTNAME}
PKGNAME-gpl2 = mlt-gpl2-${VERSION}
REVISION-main = 1
REVISION-main = 2
REVISION-gpl2 = 0
# XXX versions should be kept in sync together

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-src_framework_mlt_property_h,v 1.1 2017/05/24 16:30:52 espie Exp $
Index: src/framework/mlt_property.h
--- src/framework/mlt_property.h.orig
+++ src/framework/mlt_property.h
@@ -30,8 +30,11 @@
#include <sys/param.h>
#endif
-#if defined(__GLIBC__) || defined(__APPLE__) || (__FreeBSD_version >= 900506)
+#if defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD_version) && (__FreeBSD_version >= 900506)
#include <xlocale.h>
+#elif defined(__OpenBSD__)
+/* XXX matches __nop_locale glue in libc++ */
+typedef void* locale_t;
#else
typedef char* locale_t;
#endif