Commit 888ae65035a604f22010ff55f5499a3d137f930c

Thomas Adam 2022-07-03T23:53:34

got_date.h: add explicit #includes Don't rely on implicit/"hidden" includes, but rather add them to the header file so their inclusion doesn't result in missing values. Although not explicitly a functional change, this does help -portable. This ensures size_t/time_t are always present. OK @jrick

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/got_date.h b/include/got_date.h
index b005c2c..bc70d6e 100644
--- a/include/got_date.h
+++ b/include/got_date.h
@@ -14,5 +14,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <sys/time.h>
+#include <sys/types.h>
+
 void
 got_date_format_gmtoff(char *, size_t, time_t);