31 lines
1013 B
Diff
31 lines
1013 B
Diff
--- origsrc/glib-2.36.4/glib/goption.c 2013-08-07 09:36:32.000000000 -0500
|
|
+++ src/glib-2.36.4/glib/goption.c 2013-10-21 13:25:01.242539100 -0500
|
|
@@ -1671,7 +1671,7 @@ free_pending_nulls (GOptionContext *cont
|
|
static char *
|
|
platform_get_argv0 (void)
|
|
{
|
|
-#if defined __linux
|
|
+#if defined __linux || defined(__CYGWIN__)
|
|
char *cmdline;
|
|
char *base_arg0;
|
|
gsize len;
|
|
--- src/glib-2.42.0/glib/tests/option-argv0.c.orig 2014-07-05 08:59:10.000000000 +0900
|
|
+++ src/glib-2.42.0/glib/tests/option-argv0.c 2014-09-25 17:47:21.916742900 +0900
|
|
@@ -27,7 +27,7 @@
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
-#if defined __linux || defined __OpenBSD__
|
|
+#if defined __linux || defined __OpenBSD__ || defined __CYGWIN__
|
|
static void
|
|
test_platform_argv0 (void)
|
|
{
|
|
@@ -56,7 +56,7 @@
|
|
{
|
|
g_test_init (&argc, &argv, "no_g_set_prgname", NULL);
|
|
|
|
-#if defined __linux || defined __OpenBSD__
|
|
+#if defined __linux || defined __OpenBSD__ || defined __CYGWIN__
|
|
g_test_add_func ("/option/argv0", test_platform_argv0);
|
|
#endif
|
|
|