[neon/backports-focal/xdg-desktop-portal/Neon/unstable] document-portal: document-portal: Fix compilation with musl
Bastien Nocera
null at kde.org
Wed Jan 13 06:32:42 GMT 2021
Git commit 2fe4f3079f094d02ee99f975c729d87bd9a72b6e by Bastien Nocera.
Committed on 02/04/2020 at 18:17.
Pushed by ash into branch 'Neon/unstable'.
document-portal: Fix compilation with musl
Define O_FSYNC if it isn't already.
Closes: #464
M +4 -0 document-portal/document-portal-fuse.c
https://invent.kde.org/neon/backports-focal/xdg-desktop-portal/commit/2fe4f3079f094d02ee99f975c729d87bd9a72b6e
diff --git a/document-portal/document-portal-fuse.c b/document-portal/document-portal-fuse.c
index 3fe4310..ad8f39a 100644
--- a/document-portal/document-portal-fuse.c
+++ b/document-portal/document-portal-fuse.c
@@ -24,6 +24,10 @@
#include "document-store.h"
#include "src/xdp-utils.h"
+#ifndef O_FSYNC
+#define O_FSYNC O_SYNC
+#endif
+
/* Inode ownership model
*
* The document portal exposes something as a filesystem that it
More information about the Neon-commits
mailing list