1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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(-)
This commit is contained in:
Natanael Copa 2015-08-14 11:32:36 +01:00 committed by Bryn M. Reeves
parent 6a93206882
commit 4534f0fbcf

View File

@ -34,7 +34,6 @@
#ifdef HAVE_REALTIME
#include <time.h>
#include <bits/time.h>
struct dm_timestamp {
struct timespec t;