mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
fcb2e9b294
switching lang/mono to a metaport.
12 lines
341 B
C
12 lines
341 B
C
--- mono/eglib/gfile-posix.c.orig 2018-01-10 08:03:25 UTC
|
|
+++ mono/eglib/gfile-posix.c
|
|
@@ -161,7 +161,7 @@ g_get_current_dir (void)
|
|
do {
|
|
buffer = g_realloc (buffer, s);
|
|
r = getcwd (buffer, s);
|
|
- fail = (r == NULL && errno == ERANGE);
|
|
+ fail = (r == NULL && (errno == ERANGE || errno == 0));
|
|
if (fail) {
|
|
s <<= 1;
|
|
}
|