Dominique Leuenberger
a7127ce5cc
- Add quvi-glibc-2.34.patch: Fix build with glibc 2.34, where 'write' is an internally used name. OBS-URL: https://build.opensuse.org/request/show/927464 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/quvi?expand=0&rev=12
36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
Index: quvi-0.9.5/src/pbar/lpbar.c
|
|
===================================================================
|
|
--- quvi-0.9.5.orig/src/pbar/lpbar.c
|
|
+++ quvi-0.9.5/src/pbar/lpbar.c
|
|
@@ -64,7 +64,7 @@ lpbar_t lpbar_new()
|
|
{
|
|
lpbar_t p = g_new0(struct lpbar_s, 1);
|
|
p->counters.timer = g_timer_new();
|
|
- p->mode = write;
|
|
+ p->mode = do_write;
|
|
return (p);
|
|
}
|
|
|
|
@@ -212,7 +212,7 @@ void lpbar_print(const lpbar_t p)
|
|
g_print(C_("Transfer mode with a reason", "skip <forced>"));
|
|
break;
|
|
case resume:
|
|
- case write:
|
|
+ case do_write:
|
|
default:
|
|
g_print("%s", (p->initial_bytes ==0)
|
|
? C_("Transfer mode (begin at offset 0)", "write")
|
|
Index: quvi-0.9.5/src/pbar/lpbar.h
|
|
===================================================================
|
|
--- quvi-0.9.5.orig/src/pbar/lpbar.h
|
|
+++ quvi-0.9.5/src/pbar/lpbar.h
|
|
@@ -21,7 +21,7 @@
|
|
#ifndef lpbar_h
|
|
#define lpbar_h
|
|
|
|
-typedef enum { retrieved_already, forced_skip, resume, write } lpbar_mode;
|
|
+typedef enum { retrieved_already, forced_skip, resume, do_write } lpbar_mode;
|
|
|
|
struct lpbar_s
|
|
{
|