summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-21 11:01:46 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-21 11:03:01 +0100
commit373cabcf7b96ebafc8cd544de5f08bda3e81b375 (patch)
tree223c14cd156c249ef5f0a1b6f5b36493d20dc203 /util.h
parent254e16eb855460556bdf6dd50311a4114830c8d0 (diff)
util.h: slightly improve portability
Tested with the scc compiler which is a pure c99 compiler. sys/types.h is not needed here anymore (it was used for ssize_t). Side-note: scc can now compile the sfeed parser program! It requires these changes at the time of writing: Add a strcasecmp and strncasecmp function and use getchar instead of getchar_unlocked.
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/util.h b/util.h
index 8053750..7923cdc 100644
--- a/util.h
+++ b/util.h
@@ -1,6 +1,5 @@
-#include <sys/types.h>
-
#include <stdio.h>
+#include <time.h>
#ifdef __OpenBSD__
#include <unistd.h>