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

Add NetBSD support.

--- testing/cffi1/test_verify1.py.orig	2017-07-03 17:44:21.313824096 +0000
+++ testing/cffi1/test_verify1.py
@@ -1767,7 +1767,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>