Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 260553 Details for
Bug 352281
=sys-boot-yaboot-1.3.16 fails to build against e2fsprogs{-libs}-1.41.14 due to missing posix_memalign() function
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
yaboot-e2fsprogs-1.41.14.patch
yaboot-e2fsprogs-1.41.14.patch (text/plain), 889 bytes, created by
Alex Buell
on 2011-01-23 18:41:54 UTC
(
hide
)
Description:
yaboot-e2fsprogs-1.41.14.patch
Filename:
MIME Type:
Creator:
Alex Buell
Created:
2011-01-23 18:41:54 UTC
Size:
889 bytes
patch
obsolete
>diff -uNr yaboot/lib/malloc.c yaboot-1.3.16//lib/malloc.c >--- yaboot/lib/malloc.c 2010-07-09 03:18:17.000000000 +0100 >+++ yaboot-1.3.16//lib/malloc.c 2011-01-23 16:57:13.000000000 +0000 >@@ -42,6 +42,37 @@ > last_alloc = 0; > } > >+static char *align_ptr_to(char *ptr, unsigned long align) >+{ >+ return (char *)((((unsigned long)ptr) + (align - 1UL)) & >+ ~(align - 1UL)); >+} >+ >+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 *malloc (unsigned int size) > { > char *caddr;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 352281
:
260552
| 260553