summaryrefslogtreecommitdiff
path: root/stdlib/stdlib.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-12-27 07:35:05 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-01 07:17:22 -0500
commit8b43a4cc567222ed61f157eccc0a8e1411082994 (patch)
treeadf9f8664acb91c518be4c777f7af8bf715a6d84 /stdlib/stdlib.h
parent0c023bb722bf89f95308f96cf567ac6fe03d402b (diff)
downloadglibc-8b43a4cc567222ed61f157eccc0a8e1411082994.tar.gz
Fix aligned_alloc prototype
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r--stdlib/stdlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 55886662bc..99c34a4ee5 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