projects
/
platform
/
upstream
/
linaro-glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c023bb
)
Fix aligned_alloc prototype
author
Ulrich Drepper
<drepper@gmail.com>
Tue, 27 Dec 2011 12:35:05 +0000
(07:35 -0500)
committer
Ulrich Drepper
<drepper@gmail.com>
Sun, 1 Jan 2012 12:17:22 +0000
(07:17 -0500)
stdlib/stdlib.h
patch
|
blob
|
history
diff --git
a/stdlib/stdlib.h
b/stdlib/stdlib.h
index
5588666
..
99c34a4
100644
(file)
--- 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