<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From: Sam James &lt;sam@gentoo.org&gt;
Date: Mon, 15 Nov 2021 05:48:39 +0000
Subject: [PATCH 1/2] Fix implicit declarations
--- a/installer.c
+++ b/installer.c
@@ -1,6 +1,7 @@
 #include &lt;errno.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
 #include &lt;string.h&gt;
 #include &lt;sys/types.h&gt;
 #include &lt;sys/stat.h&gt;
--- a/instcheck.c
+++ b/instcheck.c
@@ -1,6 +1,7 @@
 #include &lt;errno.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
 #include &lt;sys/types.h&gt;
 #include &lt;sys/stat.h&gt;
 #include &lt;unistd.h&gt;
--- a/tai_decode.c
+++ b/tai_decode.c
@@ -1,5 +1,7 @@
 #include "tai.h"
 
+#include &lt;ctype.h&gt;
+
 static bool isdigit(char ch)
 {
   return ch &gt;= '0' &amp;&amp; ch &lt;= '9';
--- a/tai_decode.c
+++ b/tai_decode.c
@@ -2,7 +2,7 @@
 
 #include &lt;ctype.h&gt;
 
-static bool isdigit(char ch)
+static bool qlogtools_isdigit(char ch)
 {
   return ch &gt;= '0' &amp;&amp; ch &lt;= '9';
 }
@@ -12,11 +12,11 @@ tai* tai_decode(const char* str, const char** endptr)
   static tai t;
   t.seconds = 0;
   t.nanoseconds = 0;
-  while(isdigit(*str))
+  while(qlogtools_isdigit(*str))
     t.seconds = (t.seconds * 10) + (*str++ - '0');
   if(*str == '.') {
     ++str;
-    while(isdigit(*str))
+    while(qlogtools_isdigit(*str))
       t.nanoseconds = (t.nanoseconds * 10) + (*str++ - '0');
   }
   if(endptr)
-- 
2.33.1

</pre></body></html>