From 3669c834b83bef3d9b30f7ce4095be94e064a997 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 29 Jun 2003 17:38:52 +0000 Subject: Fix build on -CURRENT by conditionally using va_copy() where available. --- www/epiphany/files/patch-lib_ephy-node.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'www/epiphany') diff --git a/www/epiphany/files/patch-lib_ephy-node.c b/www/epiphany/files/patch-lib_ephy-node.c index 28afb360b7cb..2777286b0dc3 100644 --- a/www/epiphany/files/patch-lib_ephy-node.c +++ b/www/epiphany/files/patch-lib_ephy-node.c @@ -1,17 +1,21 @@ ---- lib/ephy-node.c.orig Sat Jun 28 11:03:58 2003 -+++ lib/ephy-node.c Sat Jun 28 11:04:22 2003 -@@ -115,12 +115,12 @@ +--- lib/ephy-node.c.orig Mon Jun 9 19:02:09 2003 ++++ lib/ephy-node.c Sun Jun 29 02:01:59 2003 +@@ -115,12 +115,16 @@ static void callback (long id, EphyNodeSignalData *data, gpointer *user_data) { - va_list valist; -+ _BSD_VA_LIST_ valist; ++ va_list valist; EphyNodeSignalType type = GPOINTER_TO_INT (user_data[1]); if (data->type != type) return; - va_copy(valist, user_data[0]); -+ valist = user_data[0]; ++#if __FreeBSD_version >= 500040 ++ va_copy(valist, user_data[0]); ++#else ++ valist = (va_list) user_data[0]; ++#endif switch (data->type) { -- cgit