diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2018-04-05 12:49:47 +0200 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2018-04-05 11:34:40 -0400 |
commit | 714b85c450678167c02f339d0d6990c0b50a74c8 (patch) | |
tree | 82181f44a767b1399cb0298e0cd303ac0dbf491c /sys-boot/silo | |
parent | app-admin/syslog-ng: fix building with automake 1.16. (diff) | |
download | gentoo-714b85c450678167c02f339d0d6990c0b50a74c8.tar.gz gentoo-714b85c450678167c02f339d0d6990c0b50a74c8.tar.bz2 gentoo-714b85c450678167c02f339d0d6990c0b50a74c8.zip |
sys-boot/silo: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/7826
Diffstat (limited to 'sys-boot/silo')
-rw-r--r-- | sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch b/sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch deleted file mode 100644 index afcfc462ea87..000000000000 --- a/sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch +++ /dev/null @@ -1,54 +0,0 @@ -# Patch to make silo compile and work with >=e2fsprogs-1.4.14 -# http://bugs.gentoo.org/show_bug.cgi?id=350677 -# http://marc.info/?l=linux-sparc&m=129468771631829&w=2 ---- silo.orig/common/malloc.c 2010-02-28 12:11:51.000000000 +0100 -+++ silo/common/malloc.c 2011-01-22 12:06:42.849946213 +0100 -@@ -27,6 +27,12 @@ - - static char *last_alloc = 0; - -+static char *align_ptr_to(char *ptr, unsigned long align) -+{ -+ return (char *) ((((unsigned long) ptr) + (align - 1UL)) & -+ ~(align - 1UL)); -+} -+ - void *malloc (int size) - { - char *caddr; -@@ -34,10 +40,34 @@ - caddr = malloc_ptr; - malloc_ptr += size; - last_alloc = caddr; -- malloc_ptr = (char *) ((((unsigned long) malloc_ptr) + 7) & (~7)); -+ malloc_ptr = align_ptr_to(malloc_ptr, 8UL); - return caddr; - } - -+int posix_memalign(void **memptr, unsigned long alignment, unsigned long size) -+{ -+ char *caddr; -+ -+ if (alignment & (alignment - 1UL)) -+ return -1; -+ if (alignment & (sizeof(void *) - 1UL)) -+ return -1; -+ -+ if (size == 0) { -+ *memptr = (void *) 0; -+ return 0; -+ } -+ -+ caddr = align_ptr_to(malloc_ptr, alignment); -+ malloc_ptr = (caddr + size); -+ last_alloc = caddr; -+ malloc_ptr = align_ptr_to(malloc_ptr, 8UL); -+ -+ *memptr = caddr; -+ -+ return 0; -+} -+ - void free (void *m) - { - if (m == last_alloc) |