Files
pkgsrc-ng/print/podofo/patches/patch-src_base_PdfCompilerCompat.h
2016-11-18 22:39:22 +01:00

15 lines
446 B
C

$NetBSD: patch-src_base_PdfCompilerCompat.h,v 1.2 2015/11/05 19:46:53 adam Exp $
--- src/base/PdfCompilerCompat.h.orig 2011-09-30 13:20:59.000000000 +0200
+++ src/base/PdfCompilerCompat.h 2014-08-26 14:58:16.000000000 +0200
@@ -72,6 +72,9 @@
#if defined(_WIN32)
#include <malloc.h>
#endif
+#ifdef __NetBSD__
+#define alloca __builtin_alloca
+#endif
// Disable usage of min() and max() macros
#if defined(_WIN32) && !defined(__MINGW32__)