summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-01-25 13:57:01 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-01-25 14:02:41 -0500
commit37e6139e2acfc9a2bbf87ec10d8290d7bfa8aa3c (patch)
treee40122c8d0021e4e7c738805aa6832b9c43008c4 /src/libudev
parent6379c8b932690e5990c81873c556e00d0b59292b (diff)
src/libudev/util.h: import FORMAT_TIMESPAN_MAX for selinux
When configure --enable-selinux, we hit a compile time error with a missing definition of FORMAT_TIMESPAN_MAX. This was imported from upstream's src/shared/time-util.h into our src/libudev/util.h. Thanks Amadeusz Sławiński <amade@asmblr.net> X-Gentoo-Bug: 499252 X-Gentoo-Bug-URL: https://bugs.gentoo.org/499252 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev')
-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"