From 3cbbed2f63c91ea3eb4eb2f28fc1aab9c42ffb45 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Fri, 21 Jan 2022 22:00:38 +0000
Subject: define va_copy for Haiku x86_gcc2


diff --git a/ncurses-prompt.c b/ncurses-prompt.c
index 0db22ac..4fa255b 100644
--- a/ncurses-prompt.c
+++ b/ncurses-prompt.c
@@ -24,6 +24,10 @@
 #include "ncurses-print.h"
 #include "ncurses-prompt.h"
 
+#if defined(__HAIKU__) && __GNUC__ < 3
+#define va_copy __va_copy
+#endif
+
 struct prompt_info *prompt_info_alloc(size_t initial_size)
 {
   struct prompt_info *out;
diff --git a/ncurses-status.c b/ncurses-status.c
index a209949..6db46ef 100644
--- a/ncurses-status.c
+++ b/ncurses-status.c
@@ -24,6 +24,10 @@
 #include "ncurses-print.h"
 #include "ncurses-status.h"
 
+#if defined(__HAIKU__) && __GNUC__ < 3
+#define va_copy __va_copy
+#endif
+
 struct status_text *status_text_alloc(struct status_text *status, size_t width)
 {
   struct status_text *result;
-- 
2.30.2

