Re: [PATCH 1/5] libmultipath: make sure __GLIBC_PREREQ() is defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/27/20 11:45 PM, mwilck@xxxxxxxx wrote:
From: Martin Wilck <mwilck@xxxxxxxx>

Otherwise complilation fails on non-glibc systems.

Signed-off-by: Martin Wilck <mwilck@xxxxxxxx>

Tested-by: Xose Vazquez Perez <xose.vazquez@xxxxxxxxx>

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


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux