Skip to contentSkip to conversation

main - clang: possible better compilation with musl c

PATCH Zdenek Kabelac 1 participant 1 message Feb 16, 2022

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4fd76de4b69f8e5e6d5afa03d54cb4b8986c4bcc
Commit:        4fd76de4b69f8e5e6d5afa03d54cb4b8986c4bcc
Parent:        d2e7a05573f54750d13c1154036ae2c67478539b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Feb 16 00:48:49 2022 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Feb 16 01:00:36 2022 +0100

clang: possible better compilation with musl c

Try to help resolving reported compilation problem with clang & musl C.
https://github.com/lvmteam/lvm2/issues/61

---
 libdaemon/server/daemon-server.c | 1 +
 1 file changed, 1 insertion(+)
libdaemon/server/daemon-server.c +1 -0
index 88905a7dd..96cfc392e 100644
@@ -18,6 +18,7 @@
 
 #include <dlfcn.h>
 #include <errno.h>
+#include <fcntl.h> /* help musl C */
 #include <pthread.h>
 #include <sys/file.h>
 #include <sys/stat.h>