]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
memalign is available on FreeBSD as a non-portable interface
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 10 Oct 2021 20:15:59 +0000 (22:15 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 10 Oct 2021 20:15:59 +0000 (22:15 +0200)
Remove #if block protecting memalign calls

memcheck/tests/memalign2.c

index 4ae967b9e8aff7431ac45ea5551de2d0149a25df..95d13354e71691754f2a5ce003e5a9c80c0ff07f 100644 (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)