[dm-devel] [PATCH 1/5] libmultipath: make sure __GLIBC_PREREQ() is defined

mwilck at suse.com mwilck at suse.com
Tue Oct 27 22:45:32 UTC 2020


From: Martin Wilck <mwilck at suse.com>

Otherwise complilation fails on non-glibc systems.

Signed-off-by: Martin Wilck <mwilck at suse.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
-- 
2.29.0





More information about the dm-devel mailing list