summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libudev/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libudev/util.h b/src/libudev/util.h
index 14233c9d7e..60ef764d97 100644
--- a/src/libudev/util.h
+++ b/src/libudev/util.h
@@ -33,6 +33,11 @@
#include "macro.h"
+/* Note: the time definitions are from upstream's
+ * src/shared/time-util.h which I have put here
+ * for now. We may need to beak these out later.
+ * <blueness@gentoo.org>
+ */
typedef uint64_t usec_t;
typedef uint64_t nsec_t;
@@ -67,6 +72,8 @@ union dirent_storage {
#define USEC_PER_YEAR (31557600ULL*USEC_PER_SEC)
#define NSEC_PER_YEAR (31557600ULL*NSEC_PER_SEC)
+#define FORMAT_TIMESPAN_MAX 64
+
/* What is interpreted as whitespace? */
#define WHITESPACE " \t\n\r"
#define NEWLINE "\n\r"