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 <raj.khem@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
Khem Raj 2016-01-13 22:32:38 -08:00 committed by NeilBrown
parent dfd7822ca6
commit cf80bce8df
1 changed files with 3 additions and 0 deletions

View File

@ -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"