summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.h b/common.h
index a42812e..935d6f1 100644
--- a/common.h
+++ b/common.h
@@ -7,6 +7,8 @@
#ifndef GUARD_COMMON_H
#define GUARD_COMMON_H
+#include <time.h>
+
#ifndef __attribute__
# if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
# define __attribute__(x)
@@ -44,4 +46,7 @@ char *sstrdup(const char *s);
/* Print version string */
void version(void);
+/* Compare two times */
+int timespec_cmp(struct timespec *a, struct timespec *b);
+
#endif /* GUARD_COMMON_H */