From: Ulrich Drepper Date: Tue, 27 Dec 2011 12:35:05 +0000 (-0500) Subject: Fix aligned_alloc prototype X-Git-Tag: upstream/2.20~4769^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b43a4cc567222ed61f157eccc0a8e1411082994;p=platform%2Fupstream%2Flinaro-glibc.git Fix aligned_alloc prototype --- diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 5588666..99c34a4 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -511,7 +511,8 @@ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) #ifdef __USE_ISOC11 /* ISO C variant of aligned allocation. */ -extern int aligned_alloc (size_t __alignment, size_t __size) __THROW __wur; +extern void *aligned_alloc (size_t __alignment, size_t __size) + __THROW __wur __attribute__ ((__malloc__, __alloc_size__ (2))); #endif __BEGIN_NAMESPACE_STD