From 8ff82a78ac1ad3f07d67633f31065729dfb8792c Mon Sep 17 00:00:00 2001 From: luka Date: Sat, 9 Jun 2012 17:59:57 +0000 Subject: [tools] e2fsprogs: update to 1.42.3 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32142 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/e2fsprogs/patches/005-posix_memalign.patch | 31 ------------------------ 1 file changed, 31 deletions(-) delete mode 100644 tools/e2fsprogs/patches/005-posix_memalign.patch (limited to 'tools/e2fsprogs/patches/005-posix_memalign.patch') diff --git a/tools/e2fsprogs/patches/005-posix_memalign.patch b/tools/e2fsprogs/patches/005-posix_memalign.patch deleted file mode 100644 index 2ce4ead89..000000000 --- a/tools/e2fsprogs/patches/005-posix_memalign.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/lib/ext2fs/ext2fs.h -+++ b/lib/ext2fs/ext2fs.h -@@ -1212,7 +1212,26 @@ - - if (align == 0) - align = 8; -- if (retval = posix_memalign((void **) ptr, align, size)) { -+#ifdef HAVE_POSIX_MEMALIGN -+ retval = posix_memalign((void **)ptr, align, size); -+#else -+#ifdef HAVE_MEMALIGN -+ if ((*(void **)ptr = (void *)memalign(align, size)) == NULL) -+ retval = errno; -+ else -+ retval = 0; -+#else -+#ifdef HAVE_VALLOC -+ if ((*(void **)ptr = valloc(size)) == NULL) -+ retval = errno; -+ else -+ retval = 0; -+#else -+# error "Impossible to allocate aligned memory!" -+#endif /* HAVE_VALLOC */ -+#endif /* HAVE_MEMALIGN */ -+#endif /* HAVE_POSIX_MEMALIGN */ -+ if (retval) { - if (retval == ENOMEM) - return EXT2_ET_NO_MEMORY; - return retval; --- -- cgit v1.2.3