[phodav: 1/2] Build on MacOS/Darwin
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav: 1/2] Build on MacOS/Darwin
- Date: Tue, 19 Apr 2022 13:17:03 +0000 (UTC)
commit ae9ac98c1b3db26070111661aba02594c62d2cef
Author: jmorrison <jmorrison@jmorrisons-iMac-Pro.local>
Date: Fri Oct 22 12:49:21 2021 -0700
Build on MacOS/Darwin
bin/spice-webdavd.c | 4 ++++
libphodav/meson.build | 2 +-
libphodav/phodav-method-proppatch.c | 4 ++++
3 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/bin/spice-webdavd.c b/bin/spice-webdavd.c
index ee713bd..b9453ff 100644
--- a/bin/spice-webdavd.c
+++ b/bin/spice-webdavd.c
@@ -655,7 +655,11 @@ run_service (ServiceData *service_data)
loop = g_main_loop_new (NULL, TRUE);
#ifdef G_OS_UNIX
+#ifdef __APPLE__
+ open_mux_path ("/dev/tty.org.spice-space.webdav.0");
+#else
open_mux_path ("/dev/virtio-ports/org.spice-space.webdav.0");
+#endif
#else
open_mux_path ("\\\\.\\Global\\org.spice-space.webdav.0");
#endif
diff --git a/libphodav/meson.build b/libphodav/meson.build
index 4525e35..b6275ed 100644
--- a/libphodav/meson.build
+++ b/libphodav/meson.build
@@ -40,7 +40,7 @@ libphodav = library(
c_args : [ '-DG_LOG_DOMAIN="phodav"' ],
include_directories : incdir,
version: '0.0.0',
- link_args : [ '-Wl,--no-undefined', vflag ],
+ link_args : compiler.get_supported_link_arguments([ '-Wl,--no-undefined', vflag ]),
link_depends : mapfile,
dependencies : deps,
install : true,
diff --git a/libphodav/phodav-method-proppatch.c b/libphodav/phodav-method-proppatch.c
index 4cd8211..3421e32 100644
--- a/libphodav/phodav-method-proppatch.c
+++ b/libphodav/phodav-method-proppatch.c
@@ -59,7 +59,11 @@ set_attr (GFile *file, xmlNodePtr attrnode,
return SOUP_STATUS_FORBIDDEN;
gchar *path = g_file_get_path (file);
#ifdef HAVE_SYS_XATTR_H
+#ifdef __APPLE__
+ removexattr (path, attrname, 0);
+#else
removexattr (path, attrname);
+#endif
#else
g_debug ("cannot remove xattr from %s, not supported", path); /* FIXME? */
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]