summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-01-16 00:25:29 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-01-16 00:25:47 +0100
commit83e491dc13f70e76bd4cd79313098379123be1e2 (patch)
tree990582dce3e8686d4da807548091856ac2ffaf50 /src
parentab700191fa487a238d9cd03c81c9e1ef7124548f (diff)
downloadtork-83e491dc13f70e76bd4cd79313098379123be1e2.tar.gz
tork-83e491dc13f70e76bd4cd79313098379123be1e2.zip
Add sys/time.h and time.h header detection to resolve FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit bda2d7559f18b2e02050dc433c5ff70cec8e3362)
Diffstat (limited to 'src')
-rw-r--r--src/torkview.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/torkview.cpp b/src/torkview.cpp
index ff76276..8aa8ba1 100644
--- a/src/torkview.cpp
+++ b/src/torkview.cpp
@@ -44,7 +44,12 @@
#include <tdeio/netaccess.h>
#include <tdelocale.h>
-#include <sys/time.h>
+#if defined(HAVE_SYS_TIME_H)
+# include <sys/time.h>
+#endif
+#if defined(TIME_WITH_SYS_TIME)
+# include <time.h>
+#endif
/* Linux-specific includes */
#include <dirent.h>