aboutsummaryrefslogtreecommitdiffstats
path: root/lib/psitime.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-03-29 15:46:37 +0000
committerFritz Elfert <felfert@to.com>2001-03-29 15:46:37 +0000
commit04b269100ef9a0ea09ab6557095b18ccdf168074 (patch)
tree28ef682cd560565b9a8b080f8c496b8721339a8f /lib/psitime.h
parent63be61f0a1e1e4ea35b2829d5d28af30f38c3e2e (diff)
downloadplptools-04b269100ef9a0ea09ab6557095b18ccdf168074.tar.gz
plptools-04b269100ef9a0ea09ab6557095b18ccdf168074.tar.bz2
plptools-04b269100ef9a0ea09ab6557095b18ccdf168074.zip
Fixed debian compile bug.
Fixed link when libplp is not yet installed.
Diffstat (limited to 'lib/psitime.h')
-rw-r--r--lib/psitime.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/psitime.h b/lib/psitime.h
index bf5b3cb..ef574f9 100644
--- a/lib/psitime.h
+++ b/lib/psitime.h
@@ -27,7 +27,17 @@
#include <config.h>
#endif
-#include <sys/time.h>
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#include <unistd.h>
#include <sys/types.h>