mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
include header that declares __syscall_ret where it's defined
in general, we aim to always include the header that's declaring a function before defining it so that the compiler can check that prototypes match. additionally, the internal syscall.h declares __syscall_ret with a visibility attribute to improve code generation for shared libc (to prevent gratuitous GOT-register loads). this declaration should be visible at the point where __syscall_ret is defined, too, or the inconsistency could theoretically lead to problems at link-time.
This commit is contained in:
parent
8afa7cf5d0
commit
30c1205acd
1 changed files with 1 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <errno.h>
|
||||
#include "syscall.h"
|
||||
|
||||
long __syscall_ret(unsigned long r)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue