openbsd-ports/graphics/darktable/patches/patch-src_common_darktable_c
sthen e9a07850f5 slightly overdue update of darktable to 0.9.3 - lots of improvements
and fixes since the previous version in ports
2011-12-09 20:11:00 +00:00

28 lines
879 B
Plaintext

$OpenBSD: patch-src_common_darktable_c,v 1.1 2011/12/09 20:11:00 sthen Exp $
--- src/common/darktable.c.orig Fri Dec 9 16:24:27 2011
+++ src/common/darktable.c Fri Dec 9 16:28:10 2011
@@ -49,7 +49,7 @@
#include <sys/param.h>
#include <unistd.h>
-#if !defined(__APPLE__) && !defined(__FreeBSD__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
#include <malloc.h>
#endif
#ifdef __APPLE__
@@ -77,12 +77,12 @@ typedef void (dt_signal_handler_t)(int) ;
static dt_signal_handler_t *_dt_sigill_old_handler = NULL;
static dt_signal_handler_t *_dt_sigsegv_old_handler = NULL;
-#ifdef __APPLE__
+#if defined (__APPLE__) || defined(__OpenBSD__)
static int dprintf(int fd,const char *fmt, ...)
{
va_list ap;
FILE *f = fdopen(fd,"a");
- va_start(ap, &fmt);
+ va_start(ap, fmt);
int rc = vfprintf(f, fmt, ap);
fclose(f);
va_end(ap);