From 37e6139e2acfc9a2bbf87ec10d8290d7bfa8aa3c Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 25 Jan 2014 13:57:01 -0500 Subject: src/libudev/util.h: import FORMAT_TIMESPAN_MAX for selinux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Gentoo-Bug: 499252 X-Gentoo-Bug-URL: https://bugs.gentoo.org/499252 Signed-off-by: Anthony G. Basile --- src/libudev/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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. + * + */ 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" -- cgit v1.2.3-54-g00ecf