diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-09-30 08:36:03 -0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-12-10 13:28:07 +0200 |
commit | ac0f8a75814721e3a7d503521c1b56828f8fa1a7 (patch) | |
tree | 15cd864b9616dcc73ce2d8928fd239742583c277 | |
parent | ba0f1bc146a0495171837b074255f2eb79670022 (diff) | |
download | rpm-ac0f8a75814721e3a7d503521c1b56828f8fa1a7.tar.gz |
lib/rpmdb.c: include fcntl.h for O_*
Fixes compilation on musl, otherwise it fails with undefined references
to various O_* symbols as mentioned here:
https://www.man7.org/linux/man-pages/man0/fcntl.h.0p.html
(cherry picked from commit 9395bdc64459357631111842e7a28304b4d76301)
-rw-r--r-- | lib/rpmdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 4c101569f..73187630b 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -8,6 +8,7 @@ #include <utime.h> #include <errno.h> #include <dirent.h> +#include <fcntl.h> #ifndef DYING /* XXX already in "system.h" */ #include <fnmatch.h> |