summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/snprintf.c2
-rw-r--r--source4/lib/talloc/talloc.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/snprintf.c b/source4/lib/snprintf.c
index 3b04228c42..dbfb046c3d 100644
--- a/source4/lib/snprintf.c
+++ b/source4/lib/snprintf.c
@@ -83,6 +83,8 @@
#ifndef VA_COPY
#ifdef HAVE_VA_COPY
+#define VA_COPY(dest, src) va_copy(dest, src)
+#elif defined(HAVE___VA_COPY)
#define VA_COPY(dest, src) __va_copy(dest, src)
#else
#define VA_COPY(dest, src) (dest) = (src)
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c
index 4c8cc31028..e05b196592 100644
--- a/source4/lib/talloc/talloc.c
+++ b/source4/lib/talloc/talloc.c
@@ -873,6 +873,8 @@ char *talloc_strndup(const void *t, const char *p, size_t n)
#ifndef VA_COPY
#ifdef HAVE_VA_COPY
+#define VA_COPY(dest, src) va_copy(dest, src)
+#elif defined(HAVE___VA_COPY)
#define VA_COPY(dest, src) __va_copy(dest, src)
#else
#define VA_COPY(dest, src) (dest) = (src)