mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
21a4b315bb
Approved by: portmgr blanket
28 lines
981 B
Plaintext
28 lines
981 B
Plaintext
--- configure.orig 2014-12-17 22:02:44.000000000 +0100
|
|
+++ configure 2015-03-28 13:56:41.340987552 +0100
|
|
@@ -3798,17 +3808,17 @@
|
|
echores "$aligned_malloc"
|
|
|
|
|
|
-echocheck "memalign()"
|
|
+echocheck "aligned_alloc()"
|
|
# XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
|
|
-def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
|
|
+def_memalign='#define HAVE_MEMALIGN 0'
|
|
_memalign=no
|
|
-statement_check malloc.h 'memalign(64, sizeof(char))' && _memalign=yes
|
|
+statement_check stdlib.h 'aligned_alloc(32, 32*sizeof(char))' && _memalign=yes
|
|
if test "$_memalign" = yes ; then
|
|
- def_memalign='#define HAVE_MEMALIGN 1'
|
|
+ def_map_memalign='#define memalign(a, b) aligned_alloc(a, b)'
|
|
+ def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
|
|
else
|
|
- def_memalign='#define HAVE_MEMALIGN 0'
|
|
def_map_memalign='#define memalign(a, b) malloc(b)'
|
|
- darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
|
|
+ def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
|
|
fi
|
|
echores "$_memalign"
|
|
|
|
|