From d3b8f270eac7314767e9098ef28e2f8b89fbf296 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 5 Feb 2013 09:33:30 +0100 Subject: [PATCH] headers: add headers for musl libc On glibc, those are erroneously (namespace pollution) pulled in via other headers. this doesn't work with conformant libcs (musl libc in this case), we simply need to include all needed headers. Signed-Off-By: John Spencer --- daemons/dmeventd/dmeventd.c | 1 + libdm/mm/pool-fast.c | 1 + scripts/lvm2_activation_generator_systemd_red_hat.c | 1 + 3 files changed, 3 insertions(+) diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index 55b940f9d..06c0c928d 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -37,6 +37,7 @@ #include #include #include /* for htonl, ntohl */ +#include #ifdef linux /* diff --git a/libdm/mm/pool-fast.c b/libdm/mm/pool-fast.c index 61e076a1e..0e13416b1 100644 --- a/libdm/mm/pool-fast.c +++ b/libdm/mm/pool-fast.c @@ -18,6 +18,7 @@ #endif #include "dmlib.h" +#include #include struct chunk { diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c index dfd6fc446..6fc2865ee 100644 --- a/scripts/lvm2_activation_generator_systemd_red_hat.c +++ b/scripts/lvm2_activation_generator_systemd_red_hat.c @@ -19,6 +19,7 @@ #include #include #include +#include /* for PATH_MAX */ #include "lvm2app.h" #define KMSG_DEV_PATH "/dev/kmsg"