Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-src_include_OpenImageIO_platform.h,v 1.1 2016/02/17 21:54:09 richard Exp $
SunOS needs <alloca.h> for alloca()
--- src/include/OpenImageIO/platform.h.orig 2015-06-11 17:25:58.000000000 +0000
+++ src/include/OpenImageIO/platform.h
@@ -91,7 +91,9 @@
#define OIIO_CPLUSPLUS11 1
#endif
-
+#ifdef __sun
+#include <alloca.h>
+#endif
/// allocates memory, equivalent of C99 type var_name[size]
#define OIIO_ALLOCA(type, size) ((type*)alloca((size) * sizeof (type)))