diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-30 01:38:52 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-30 01:38:52 +0800 |
commit | 3669c834b83bef3d9b30f7ce4095be94e064a997 (patch) | |
tree | 998b8c33d63dcf32987b4d740ab3274623a9e2b0 /www/epiphany | |
parent | 32d4bb1f71baea9c192237f4d077e97b306e6b02 (diff) | |
download | freebsd-ports-gnome-3669c834b83bef3d9b30f7ce4095be94e064a997.tar.gz freebsd-ports-gnome-3669c834b83bef3d9b30f7ce4095be94e064a997.tar.zst freebsd-ports-gnome-3669c834b83bef3d9b30f7ce4095be94e064a997.zip |
Fix build on -CURRENT by conditionally using va_copy() where available.
Diffstat (limited to 'www/epiphany')
-rw-r--r-- | www/epiphany/files/patch-lib_ephy-node.c | 14 |
1 files changed, 9 insertions, 5 deletions
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) { |