Skip to content

Commit

Permalink
Fixed build error in t-test1-1.0.1 due to missing memalign() in NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvanandan1997 committed Jun 28, 2020
1 parent 62b1cad commit be87492
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t-test1-1.0.1/MEMALIGN.patch
@@ -0,0 +1,11 @@
--- t-test1.c.orig 2017-01-13 19:43:40.000000000 +0530
+++ t-test1.c 2020-06-29 01:37:10.474313589 +0530
@@ -280,7 +280,7 @@
{
/* memalign */
if (m->size > 0) free(m->ptr);
- m->ptr = memalign(sizeof(int) << r, size);
+ m->ptr = aligned_alloc(sizeof(int) << r, size);
}
else if (r < 20)
{

0 comments on commit be87492

Please sign in to comment.