1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Adrian Bunk <bunk@debian.org>
Date: Tue, 13 Feb 2018 06:22:21 +0300
Subject: [PATCH] Use "extern inline" for __write2
This is required to ensure that an out-of-line
version of the function will be generated.
---
checkpassword.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checkpassword.c b/checkpassword.c
index 655668a..edb7ce0 100644
--- a/checkpassword.c
+++ b/checkpassword.c
@@ -8,7 +8,7 @@
#ifdef __dietlibc__
#include <write12.h>
#else
-inline void __write2(const char* message) {
+extern inline void __write2(const char* message) {
write(2,message,strlen(message));
}
#endif
|