1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 07:25:07 +00:00
serenity/Ports/glib/patches/0006-conflict-rename-gio-mount-function.patch
2021-08-14 22:32:00 +01:00

39 lines
986 B
Diff

From cadaea8b2c881bf4fcfa75a03fe07ae1addd4f43 Mon Sep 17 00:00:00 2001
From: Kenneth Myhra <kennethmyhra@gmail.com>
Date: Thu, 12 Aug 2021 20:38:51 +0200
Subject: [PATCH 06/12] gio/gio-tool-mount.c: Rename glib/gio mount function to
gio_mount
Somehow glib picks up on Serenity's mount function and gets confused
---
gio/gio-tool-mount.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gio/gio-tool-mount.c b/gio/gio-tool-mount.c
index c624268..24723c5 100644
--- a/gio/gio-tool-mount.c
+++ b/gio/gio-tool-mount.c
@@ -330,7 +330,11 @@ new_mount_op (void)
static void
+#ifdef __serenity__
+gio_mount (GFile *file)
+#elif
mount (GFile *file)
+#endif
{
GMountOperation *op;
@@ -1241,7 +1245,7 @@ handle_mount (int argc, char *argv[], gboolean do_help)
else if (mount_eject)
eject (file);
else
- mount (file);
+ gio_mount (file);
g_object_unref (file);
}
}
--
2.25.1