1 --- a/lib/ext2fs/ext2fs.h
2 +++ b/lib/ext2fs/ext2fs.h
7 - if (retval = posix_memalign((void **) ptr, align, size)) {
8 +#ifdef HAVE_POSIX_MEMALIGN
9 + retval = posix_memalign((void **)ptr, align, size);
12 + if ((*(void **)ptr = (void *)memalign(align, size)) == NULL)
18 + if ((*(void **)ptr = valloc(size)) == NULL)
23 +# error "Impossible to allocate aligned memory!"
24 +#endif /* HAVE_VALLOC */
25 +#endif /* HAVE_MEMALIGN */
26 +#endif /* HAVE_POSIX_MEMALIGN */
29 return EXT2_ET_NO_MEMORY;