diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-12 08:30:26 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-12 08:30:58 +0000 |
commit | 281502e6457e44efd3e330e24d7890543ce362a4 (patch) | |
tree | 742a1950cb2ec04f1c2210f942f3ca1138e9f042 /main/elinks/musl-va_copy.patch | |
parent | be4b159e625b5d627bf135dc1746f75273677956 (diff) | |
download | aports-281502e6457e44efd3e330e24d7890543ce362a4.tar.bz2 aports-281502e6457e44efd3e330e24d7890543ce362a4.tar.xz |
main/elinks: fix build on x86_64 musl
Diffstat (limited to 'main/elinks/musl-va_copy.patch')
-rw-r--r-- | main/elinks/musl-va_copy.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/elinks/musl-va_copy.patch b/main/elinks/musl-va_copy.patch new file mode 100644 index 000000000..5074d1e20 --- /dev/null +++ b/main/elinks/musl-va_copy.patch @@ -0,0 +1,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 + + |