diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2020-10-25 15:13:40 +0100 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-12-10 13:28:07 +0200 |
commit | 0ba349c2d307a2a9598aa533961b589361683626 (patch) | |
tree | 42c241306d61988d5d848b841ad2c09ce8ca969d | |
parent | fc94bbf6015e00b5ec99a03ee20a5469748a3742 (diff) | |
download | rpm-0ba349c2d307a2a9598aa533961b589361683626.tar.gz |
lib/rpmrc.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
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
(cherry picked from commit 6dbb036d2ff4c6f182926e0826c5b7896ea1ccef)
-rw-r--r-- | lib/rpmrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 840319923..77a8708fb 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -1,5 +1,6 @@ #include "system.h" +#include <fcntl.h> #include <stdarg.h> #include <pthread.h> |