memalign is available on FreeBSD as a non-portable interface

Remove #if block protecting memalign calls
This commit is contained in:
Paul Floyd 2021-10-10 22:15:59 +02:00
parent 8c0f72667e
commit 46607a76bd

View File

@ -30,7 +30,6 @@ int main ( void )
int res;
assert(sizeof(long int) == sizeof(void*));
#if !defined(__FreeBSD__)
// Check behaviour of memalign/free for big alignment.
// In particular, the below aims at checking that a
// superblock with a big size is not marked as reclaimable
@ -79,7 +78,6 @@ int main ( void )
p = memalign(4 * 1024 * 1024, 100); assert(0 == (long)p % (4 * 1024 * 1024));
p = memalign(16 * 1024 * 1024, 100); assert(0 == (long)p % (16 * 1024 * 1024));
#endif
# define PM(a,b,c) posix_memalign((void**)a, b, c)