openbsd-ports/graphics/darktable/patches/patch-src_common_darktable_c
2012-09-14 09:50:18 +00:00

22 lines
768 B
Plaintext

$OpenBSD: patch-src_common_darktable_c,v 1.2 2012/09/14 09:50:18 sthen Exp $
--- src/common/darktable.c.orig Sat Jul 21 04:44:08 2012
+++ src/common/darktable.c Tue Aug 21 10:06:04 2012
@@ -54,7 +54,7 @@
#include <unistd.h>
#include <locale.h>
-#if !defined(__APPLE__) && !defined(__FreeBSD__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
#include <malloc.h>
#endif
#ifdef __APPLE__
@@ -87,7 +87,7 @@ static dt_signal_handler_t *_dt_sigsegv_old_handler =
#if (defined(__APPLE__) && defined(APPLE_NEED_DPRINTF)) || \
(defined(__FreeBSD_version) && (__FreeBSD_version < 800071)) || \
- defined(__SUNOS__)
+ defined(__SUNOS__) || defined(__OpenBSD__)
static int dprintf(int fd,const char *fmt, ...)
{
va_list ap;