summaryrefslogtreecommitdiff
path: root/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py
blob: eee47f314c8e46fb9539f14f62c05e13960a5be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-testing_cffi0_test__verify.py,v 1.2 2018/03/01 07:59:54 adam Exp $

Add NetBSD support.

--- testing/cffi0/test_verify.py.orig	2017-07-03 17:44:02.180970759 +0000
+++ testing/cffi0/test_verify.py
@@ -1798,7 +1798,7 @@ def test_callback_indirection():
         #include <malloc.h>
         #define alloca _alloca
         #else
-        # ifdef __FreeBSD__
+        # if defined(__FreeBSD__) || defined(__NetBSD__)
         #  include <stdlib.h>
         # else
         #  include <alloca.h>