mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
memalign is available on FreeBSD as a non-portable interface
Remove #if block protecting memalign calls
This commit is contained in:
parent
8c0f72667e
commit
46607a76bd
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user