gputils: fix build for gcc2

This commit is contained in:
Gerasim Troeglazov
2020-09-29 12:08:40 +10:00
parent 3099cac48f
commit 2bd5270fd8
2 changed files with 28 additions and 1 deletions

View File

@@ -5,9 +5,10 @@ cense. There are other GNU PIC tools available such as gpsim, a gputils compatib
HOMEPAGE="https://gputils.sourceforge.io/"
COPYRIGHT="Craig Franklin, James Bowman"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://sourceforge.net/projects/gputils/files/gputils/$portVersion/gputils-$portVersion-1.tar.bz2"
CHECKSUM_SHA256="6f88a018e85717b57a22f27a0ca41b2157633a82351f7755be92e2d7dc40bb14"
PATCHES="gputils-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86_64"

View File

@@ -0,0 +1,26 @@
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