summaryrefslogtreecommitdiff
path: root/gdk/filetransferportal.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-12-14 11:13:21 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-12-17 00:52:18 +0800
commit3d8d4921afc96b53a8db10bf65a80bed381f6a73 (patch)
treeeda8442e2b1d491fb3c74dbaeab255cf5b557dcb /gdk/filetransferportal.c
parented24f93fb9f7e09d7f5c1f8ee5054c79cb5f313b (diff)
downloadgtk+-3d8d4921afc96b53a8db10bf65a80bed381f6a73.tar.gz
gdk: Build portal bits on *nix only
The newly-added portal items are supported on *nix only, so only build them on *nix.
Diffstat (limited to 'gdk/filetransferportal.c')
-rw-r--r--gdk/filetransferportal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/filetransferportal.c b/gdk/filetransferportal.c
index 97e4134651..bb213e1a37 100644
--- a/gdk/filetransferportal.c
+++ b/gdk/filetransferportal.c
@@ -24,6 +24,9 @@
#include <fcntl.h>
#include <gio/gio.h>
+
+#ifdef G_OS_UNIX
+
#include <gio/gunixfdlist.h>
#include "filetransferportalprivate.h"
@@ -339,3 +342,5 @@ file_transfer_portal_retrieve_files_finish (GAsyncResult *result,
return FALSE;
}
+
+#endif /* G_OS_UNIX */