0001-lib-rpmdb-c-include-fcntl-h-for-O_.patch 882 B

1234567891011121314151617181920212223242526272829
  1. From 9395bdc64459357631111842e7a28304b4d76301 Mon Sep 17 00:00:00 2001
  2. From: Leo <thinkabit.ukim@gmail.com>
  3. Date: Wed, 30 Sep 2020 08:36:03 -0300
  4. Subject: [PATCH] lib/rpmdb.c: include fcntl.h for O_*
  5. Fixes compilation on musl, otherwise it fails with undefined references
  6. to various O_* symbols as mentioned here:
  7. https://www.man7.org/linux/man-pages/man0/fcntl.h.0p.html
  8. [Retrieved from:
  9. https://github.com/rpm-software-management/rpm/commit/9395bdc64459357631111842e7a28304b4d76301]
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. ---
  12. lib/rpmdb.c | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/lib/rpmdb.c b/lib/rpmdb.c
  15. index 4c101569f..73187630b 100644
  16. --- a/lib/rpmdb.c
  17. +++ b/lib/rpmdb.c
  18. @@ -8,6 +8,7 @@
  19. #include <utime.h>
  20. #include <errno.h>
  21. #include <dirent.h>
  22. +#include <fcntl.h>
  23. #ifndef DYING /* XXX already in "system.h" */
  24. #include <fnmatch.h>