diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-01-14 07:32:38 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2016-01-14 22:36:19 +0100 |
commit | cf80bce8df43d6ca9f74036ec0bcbe0f215f89be (patch) | |
tree | 3b5903fb6d44dd78141f6731ff8a6ea781d64baa | |
parent | Create: minor fix when adding a journal device (diff) | |
download | mdadm-cf80bce8df43d6ca9f74036ec0bcbe0f215f89be.tar.xz mdadm-cf80bce8df43d6ca9f74036ec0bcbe0f215f89be.zip |
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>
-rw-r--r-- | config.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |