[glib] documents portal: Make sure O_PATH is defined
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] documents portal: Make sure O_PATH is defined
- Date: Wed, 13 Jul 2016 16:38:51 +0000 (UTC)
commit 63654183a890502fe8d97f6e5d2be23589413a7a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 13 12:37:11 2016 -0400
documents portal: Make sure O_PATH is defined
FreeBSD doesn't have it.
https://bugzilla.gnome.org/show_bug.cgi?id=768780
gio/gdocumentportal.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdocumentportal.c b/gio/gdocumentportal.c
index de71cf7..d295300 100644
--- a/gio/gdocumentportal.c
+++ b/gio/gdocumentportal.c
@@ -30,6 +30,10 @@
#include "gunixfdlist.h"
#endif
+#ifndef O_PATH
+#define O_PATH 0
+#endif
+
static GXdpDocuments *documents;
static char *documents_mountpoint;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]