diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-01-16 00:25:29 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-01-16 00:25:29 +0100 |
commit | bda2d7559f18b2e02050dc433c5ff70cec8e3362 (patch) | |
tree | fa3ed1a251571c3192f975ddb849d27c5215f306 /src/torkview.cpp | |
parent | 355f00c2bd6f4b2870133d0423420ef8046b7156 (diff) | |
download | tork-bda2d7559f18b2e02050dc433c5ff70cec8e3362.tar.gz tork-bda2d7559f18b2e02050dc433c5ff70cec8e3362.zip |
Add sys/time.h and time.h header detection to resolve FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/torkview.cpp')
-rw-r--r-- | src/torkview.cpp | 7 |
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> |