libdm: do not in include internal bits/time.h header
PATCH 1/1 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(-)
libdm/libdm-timestamp.c +0 -1
@@ -34,7 +34,6 @@ #ifdef HAVE_REALTIME #include <time.h> -#include <bits/time.h> struct dm_timestamp { struct timespec t;
Signature · 1 line
2.5.0
PATCH 1/1 libdm: do not in include internal bits/time.h header
Quoted 7 lines · Natanael Copa
Do not include
bits/time.has it is an internal libc header file.A comment at the top of the glibc specific
bits/time.hsays:
"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
Applied - thanks!
Regards,
Bryn.