From: Rich Felker Date: Mon, 24 Mar 2014 00:42:05 +0000 (-0400) Subject: include header that declares __syscall_ret where it's defined X-Git-Tag: v1.1.0~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30c1205acd73c8481ca34f0a41de1d41884d07b5;p=oweals%2Fmusl.git 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. --- diff --git a/src/internal/syscall_ret.c b/src/internal/syscall_ret.c index d99f4a50..a3f47136 100644 --- a/src/internal/syscall_ret.c +++ b/src/internal/syscall_ret.c @@ -1,4 +1,5 @@ #include +#include "syscall.h" long __syscall_ret(unsigned long r) {