summaryrefslogtreecommitdiff
path: root/net/avahi/patches/patch-ah
blob: 5fbe382caf7c1561d80904a0a3bdf6209e216c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ah,v 1.1 2008/12/23 02:08:06 hasso Exp $

--- avahi-common/strlst.c.orig	2008-12-21 20:02:13 +0200
+++ avahi-common/strlst.c	2008-12-21 20:02:39 +0200
@@ -33,6 +33,14 @@
 #include "malloc.h"
 #include "defs.h"
 
+#ifndef va_copy
+#ifdef __va_copy
+#define va_copy(DEST,SRC) __va_copy((DEST),(SRC))
+#else
+#define va_copy(DEST,SRC) memcpy(&(DEST), &(SRC), sizeof(va_list))
+#endif
+#endif
+
 AvahiStringList*avahi_string_list_add_anonymous(AvahiStringList *l, size_t size) {
     AvahiStringList *n;