summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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>