aboutsummaryrefslogtreecommitdiff
path: root/biology/adun/files/patch-AdunLinkedList.m
blob: 165fbbf6fcb0f7504ff5bdb160c7e88cd3d3cab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- Kernel/AdunKernel/Framework/AdunLinkedList.m.orig	Tue Jun 13 12:16:44 2006
+++ Kernel/AdunKernel/Framework/AdunLinkedList.m	Sun Nov  5 13:34:01 2006
@@ -109,7 +109,11 @@
 	NSDebugLLog(@"AdListMemoryManagement", @"Creating New Block - There are now %d blocks", block_no);
 	//On 64 bit machines we should align on a 64 bit boundary
 
+#ifndef __FreeBSD__
 	posix_memalign((void**)&listPointer, 32, BLOCKSIZE*sizeof(ListElement));
+#else
+	listPointer = malloc(BLOCKSIZE*sizeof(ListElement));
+#endif
 	blocks[block_no-1] = listPointer;
 
 	return blocks[block_no-1];