From: Khem Raj Date: Thu, 14 Jan 2016 06:32:38 +0000 (-0800) Subject: Define _POSIX_C_SOURCE if undefined X-Git-Tag: mdadm-3.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf80bce8df43d6ca9f74036ec0bcbe0f215f89be;p=thirdparty%2Fmdadm.git Define _POSIX_C_SOURCE if undefined config.c uses _POSIX_C_SOURCE which is defined in features.h when glibc/uclibc is used, but isn't defined when musl is used. So provide a reasonable default. Signed-off-by: Khem Raj Signed-off-by: NeilBrown --- diff --git a/config.c b/config.c index c58c8fe6..b308b6cc 100644 --- a/config.c +++ b/config.c @@ -63,6 +63,9 @@ * but may not wrap over lines * */ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif #ifndef CONFFILE #define CONFFILE "/etc/mdadm.conf"