developer/check: configure: WARNING: filterdiff not installed; build will not be...
[oi-userland.git] / components / image / inkscape / patches / 11-getexecname.patch
blob7ae77f647f47d68c73721104f1b88fefcc62fbd6
1 --- inkscape-1.1.2_2022-02-04_0a00cf5339/src/path-prefix.cpp.~1~ 2022-02-04 20:12:19.000000000 +0000
2 +++ inkscape-1.1.2_2022-02-04_0a00cf5339/src/path-prefix.cpp 2022-03-12 03:18:41.926995059 +0000
3 @@ -134,6 +134,12 @@
4 if (!program_name) {
5 g_warning("get_program_name() - g_file_read_link failed");
7 +#elif defined(__sun)
8 + const char *exec_name = getexecname();
9 + program_name = (gchar *) exec_name;
10 + if (!program_name) {
11 + g_warning("get_program_name() - getexecname failed");
12 + }
13 #elif defined(__NetBSD__)
14 static const int name[] = {CTL_KERN, KERN_PROC_ARGS, -1, KERN_PROC_PATHNAME};
15 char path[MAXPATHLEN];