mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
gputils: fix build for gcc2
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
26
dev-embedded/gputils/patches/gputils-1.5.0.patchset
Normal file
26
dev-embedded/gputils/patches/gputils-1.5.0.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user