summaryrefslogtreecommitdiff
path: root/libdm/libdm-timestamp.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-08-14 11:32:36 +0100
committerBryn M. Reeves <bmr@redhat.com>2015-08-14 11:33:12 +0100
commit4534f0fbcf6b83d29baf4af78f9027ff76fe0a7a (patch)
tree51597eb3cf4b5d473d1179af76889546ace7c9af /libdm/libdm-timestamp.c
parent6a93206882cb628a88dbd372d36dc8fc8cc5053a (diff)
downloadlvm2-4534f0fbcf6b83d29baf4af78f9027ff76fe0a7a.tar.gz
libdm: do not in include internal bits/time.h header
Do not include bits/time.h as it is an internal libc header file. A comment at the top of the glibc specific bits/time.h says: "Never include this file directly; use <time.h> instead." This fixes the following build error with musl libc: libdm-timestamp.c:37:23: fatal error: bits/time.h: No such file or directory --- Compile tested with Alpine Linx (musl libc) and ubuntu 15.04 libdm/libdm-timestamp.c | 1 - 1 file changed, 1 deletion(-)
Diffstat (limited to 'libdm/libdm-timestamp.c')
-rw-r--r--libdm/libdm-timestamp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libdm/libdm-timestamp.c b/libdm/libdm-timestamp.c
index 3e01442ef..9be93a48a 100644
--- a/libdm/libdm-timestamp.c
+++ b/libdm/libdm-timestamp.c
@@ -34,7 +34,6 @@
#ifdef HAVE_REALTIME
#include <time.h>
-#include <bits/time.h>
struct dm_timestamp {
struct timespec t;