From 8ba28190405b021068abd156914a63e63a3f8612 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 29 Sep 2020 12:02:02 +1000
Subject: va_copy, gcc2 fix


diff --git a/gpasm/gpmsg.c b/gpasm/gpmsg.c
index 92e3a8a..6d32f00 100644
--- a/gpasm/gpmsg.c
+++ b/gpasm/gpmsg.c
@@ -29,6 +29,12 @@ Boston, MA 02111-1307, USA.  */
 #include "gpmsg.h"
 #include "lst.h"
 
+#ifdef __HAIKU__
+#if __GNUC__ < 3
+#define va_copy __va_copy
+#endif
+#endif
+
 typedef struct message_code {
   enum {
     ERR_CODE_NUM,
-- 
2.28.0

