summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-27 14:57:05 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-27 14:57:05 +0200
commitebc33326e1da17131171a76a9136c1f1af4f0c55 (patch)
treeb83d2e78d689fb7ceba5ded0e4ddb89cbcd0102a
parentb75648df800e43cf32492c204d21663f013cff40 (diff)
Revert "rm sys/types.h include and improve portability"
This reverts commit db1dcafd03997127f2cbc82376e2cc8df9b77356. This is needed. Tested on an (old) Slackware 11 install.
-rw-r--r--sfeed_atom.c2
-rw-r--r--sfeed_curses.c1
-rw-r--r--sfeed_frames.c2
-rw-r--r--sfeed_gopher.c2
-rw-r--r--sfeed_html.c2
-rw-r--r--sfeed_plain.c2
-rw-r--r--sfeed_twtxt.c2
7 files changed, 13 insertions, 0 deletions
diff --git a/sfeed_atom.c b/sfeed_atom.c
index c74e5fa..3ce5cf0 100644
--- a/sfeed_atom.c
+++ b/sfeed_atom.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
#include <stdio.h>
#include <string.h>
#include <time.h>
diff --git a/sfeed_curses.c b/sfeed_curses.c
index b5d1901..7d16b05 100644
--- a/sfeed_curses.c
+++ b/sfeed_curses.c
@@ -4,6 +4,7 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <locale.h>
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 7fcf3ee..178a4a2 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_gopher.c b/sfeed_gopher.c
index 0d3ea38..7da41f6 100644
--- a/sfeed_gopher.c
+++ b/sfeed_gopher.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/sfeed_html.c b/sfeed_html.c
index ebc9acd..ce96687 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_plain.c b/sfeed_plain.c
index 732eb04..8b1f00f 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
#include <locale.h>
#include <stdio.h>
#include <string.h>
diff --git a/sfeed_twtxt.c b/sfeed_twtxt.c
index 1bb9d3b..1d8ab36 100644
--- a/sfeed_twtxt.c
+++ b/sfeed_twtxt.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
#include <stdio.h>
#include <string.h>
#include <time.h>