void-packages/srcpkgs/deadbeef-fb/patches/my-errno.patch
2020-10-26 20:47:41 +01:00

19 lines
656 B
Diff

Source: @pullmoll
Upstream: no
Reason: errno is a reserved name
--- utils.c 2017-02-14 17:32:20.000000000 +0100
+++ utils.c 2020-10-26 20:38:54.549564389 +0100
@@ -234,9 +234,9 @@
if (slash)
*slash = 0;
if (-1 == stat (tmp, &stat_buf)) {
- int errno = mkdir (tmp, mode);
- if (0 != errno) {
- fprintf (stderr, "Failed to create %s (%d)\n", tmp, errno);
+ int my_errno = mkdir (tmp, mode);
+ if (0 != my_errno) {
+ fprintf (stderr, "Failed to create %s (%d)\n", tmp, my_errno);
g_free (tmp);
return 0;
}