summaryrefslogtreecommitdiff
path: root/inputmethod/tegaki-wagomu/patches/patch-ab
blob: c79da95ecc4a20bf22152cbb43d9e9541bf26ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ab,v 1.1.1.1 2010/08/07 12:54:45 obache Exp $

Use posix_memalign(3) if possible.

--- setup.py.orig	2010-02-27 04:51:50.000000000 +0000
+++ setup.py
@@ -25,8 +25,10 @@ def pkg_config(package, option):
     sub.wait()
     return [a[2:] for a in args]
 
-if platform.system() in ["Darwin", "Windows"]:
+if platform.system() in ["Darwin", "OpenBSD", "Windows"]:
     macros = []
+elif platform.system() in ["NetBSD", "FreeBSD", "DragonFly"]:
+    macros = [("HAVE_POSIX_MEMALIGN", None)]
 else:
     macros = [("HAVE_MEMALIGN", None)]