Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adélie Linux
gcompat
Commits
ee849d02
Verified
Commit
ee849d02
authored
May 08, 2019
by
A. Wilcox
🦊
Browse files
malloc: use posix_memalign instead of deprecated memalign
parent
8d59ff51
Changes
1
Hide whitespace changes
Inline
Side-by-side
libgcompat/malloc.c
View file @
ee849d02
...
...
@@ -64,7 +64,10 @@ alias(__libc_malloc, __malloc);
void
*
__libc_memalign
(
size_t
align
,
size_t
len
)
{
return
memalign
(
align
,
len
);
void
*
result
;
if
(
posix_memalign
(
&
result
,
align
,
len
)
!=
0
)
return
NULL
;
return
result
;
}
alias
(
__libc_memalign
,
__memalign
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment