1 Star 0 Fork 11

wenlongd/gnome-desktop3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gnome-desktop-3.38.6-sw.patch 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
wenlongd 提交于 2023-01-31 19:05 . Update to 43
diff -Naur gnome-desktop-3.38.6.org/libgnome-desktop/gnome-desktop-thumbnail-script.c gnome-desktop-3.38.6.sw/libgnome-desktop/gnome-desktop-thumbnail-script.c
--- gnome-desktop-3.38.6.org/libgnome-desktop/gnome-desktop-thumbnail-script.c 2022-08-19 15:09:31.100000000 +0000
+++ gnome-desktop-3.38.6.sw/libgnome-desktop/gnome-desktop-thumbnail-script.c 2022-08-19 15:11:51.660000000 +0000
@@ -152,7 +152,7 @@
}
/* From https://github.com/flatpak/flatpak/blob/master/common/flatpak-utils.c */
-#if !defined(__i386__) && !defined(__x86_64__) && !defined(__aarch64__) && !defined(__arm__)
+#if !defined(__i386__) && !defined(__x86_64__) && !defined(__aarch64__) && !defined(__arm__) && !defined(__sw_64__)
static const char *
flatpak_get_kernel_arch (void)
{
@@ -226,6 +226,8 @@
return "x86_64";
#elif defined(__aarch64__)
return "aarch64";
+#elif defined(__sw_64__)
+ return "sw_64";
#elif defined(__arm__)
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
return "arm";
@@ -243,6 +245,9 @@
#ifdef SCMP_ARCH_AARCH64
static const guint32 seccomp_aarch64_extra_arches[] = { SCMP_ARCH_ARM, 0 };
#endif
+#ifdef SCMP_ARCH_SW_64
+static const guint32 seccomp_sw_64_extra_arches[] = { SCMP_ARCH_SW_64, 0 };
+#endif
static inline void
cleanup_seccomp (void *p)
@@ -402,6 +407,13 @@
extra_arches = seccomp_aarch64_extra_arches;
}
#endif
+#ifdef SCMP_ARCH_SW_64
+ else if (strcmp (arch, "sw_64") == 0)
+ {
+ arch_id = SCMP_ARCH_SW_64;
+ extra_arches = seccomp_sw_64_extra_arches;
+ }
+#endif
/* We only really need to handle arches on multiarch systems.
* If only one arch is supported the default is fine */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dwl301/gnome-desktop3.git
git@gitee.com:dwl301/gnome-desktop3.git
dwl301
gnome-desktop3
gnome-desktop3
master

搜索帮助