[dm-devel] [PATCH 1/5] libmultipath: make sure __GLIBC_PREREQ() is defined
Xose Vazquez Perez
xose.vazquez at gmail.com
Wed Oct 28 10:23:17 UTC 2020
On 10/27/20 11:45 PM, mwilck at suse.com wrote:
> From: Martin Wilck <mwilck at suse.com>
>
> Otherwise complilation fails on non-glibc systems.
>
> Signed-off-by: Martin Wilck <mwilck at suse.com>
Tested-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
> ---
> libmultipath/util.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/libmultipath/util.h b/libmultipath/util.h
> index 0f0f6cb..2b9703a 100644
> --- a/libmultipath/util.h
> +++ b/libmultipath/util.h
> @@ -55,6 +55,9 @@ struct scandir_result {
> };
> void free_scandir_result(struct scandir_result *);
>
> +#ifndef __GLIBC_PREREQ
> +#define __GLIBC_PREREQ(x, y) 0
> +#endif
> /*
> * ffsll() is also available on glibc < 2.27 if _GNU_SOURCE is defined.
> * But relying on that would require that every program using this header file
>
More information about the dm-devel
mailing list