Skip to content
Snippets Groups Projects
Commit beebc0de authored by Sean McGovern's avatar Sean McGovern Committed by Jean-Baptiste Kempf
Browse files

contrib: zvbi: fix __va_copy() usage

parent ef640c8b
No related branches found
No related tags found
1 merge request!4964contrib: zvbi: fix __va_copy() usage
Pipeline #440898 passed with warnings with stage
in 36 minutes and 30 seconds
......@@ -23,6 +23,7 @@ ifdef HAVE_WIN32
$(APPLY) $(SRC)/zvbi/zvbi-win32-undefined.patch
endif
$(APPLY) $(SRC)/zvbi/zvbi-fix-clang-support.patch
$(APPLY) $(SRC)/zvbi/zvbi-va_copy.patch
ifdef HAVE_ANDROID
$(APPLY) $(SRC)/zvbi/zvbi-android.patch
endif
......
--- zvbi/src/misc.h.ORIG 2013-07-01 22:32:31.000000000 -0400
+++ zvbi/src/misc.h 2021-09-01 23:30:14.400736405 -0400
@@ -424,7 +424,9 @@
#endif
/* __va_copy is a GNU extension. */
-#ifndef __va_copy
+#ifdef va_copy && !defined(__va_copy)
+# define __va_copy va_copy
+#else
# define __va_copy(ap1, ap2) do { ap1 = ap2; } while (0)
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment