summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-03-27 19:09:44 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2018-03-27 19:09:44 +0200
commit89d4aece7ba679703060393ac95086fd514c7fc7 (patch)
tree97a65ea066b664fba80e66cb064b725441918aac
parente6765bd363d2dd1dcaeeae5117cc25aae53fb944 (diff)
downloadposixtz-master.tar.bz2
posixtz-master.tar.xz
fix implicit declaration warnings by including string.h and unistd.hHEADmaster
string.h is needed for strncmp(3) and unistd.h is needed for read(3), close(3) and lseek(3).
-rw-r--r--posixtz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/posixtz.c b/posixtz.c
index 972ca31..4a36e10 100644
--- a/posixtz.c
+++ b/posixtz.c
@@ -14,6 +14,8 @@
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include "posixtz.h"