From: Paul Floyd Date: Sun, 10 Oct 2021 20:15:59 +0000 (+0200) Subject: memalign is available on FreeBSD as a non-portable interface X-Git-Tag: VALGRIND_3_18_0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46607a76bd3be925f37aceb2ab4f49db0581e6b5;p=thirdparty%2Fvalgrind.git memalign is available on FreeBSD as a non-portable interface Remove #if block protecting memalign calls --- diff --git a/memcheck/tests/memalign2.c b/memcheck/tests/memalign2.c index 4ae967b9e8..95d13354e7 100644 --- a/memcheck/tests/memalign2.c +++ b/memcheck/tests/memalign2.c @@ -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)