summaryrefslogtreecommitdiffstats
path: root/main/elinks/musl-va_copy.patch
blob: 5074d1e2033ed0ff4475a7082d996f97b00b81e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- ./src/util/snprintf.h.orig
+++ ./src/util/snprintf.h
@@ -12,10 +12,14 @@
 /* XXX: This is not quite the best place for it, perhaps. But do we have
  * a better one now? --pasky */
 #ifndef VA_COPY
+#ifdef va_copy
+#define VA_COPY va_copy
+#else
 #ifdef HAVE_VA_COPY
 #define VA_COPY(dest, src) __va_copy(dest, src)
 #else
 #define VA_COPY(dest, src) (dest) = (src)
+#endif
 #endif
 #endif