avrdude: fix build

This commit is contained in:
Gerasim Troeglazov
2022-06-26 16:15:16 +10:00
parent aba62694fb
commit 57e4ea4d14
2 changed files with 45 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ technique (ISP)."
HOMEPAGE="http://www.nongnu.org/avrdude/"
COPYRIGHT="2003-2022 Brian S. Dean"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="http://download.savannah.gnu.org/releases/avrdude/avrdude-$portVersion.tar.gz"
CHECKSUM_SHA256="c0ef65d98d6040ca0b4f2b700d51463c2a1f94665441f39d15d97442dbb79b54"
PATCHES="avrdude-$portVersion.patchset"

View File

@@ -1,4 +1,4 @@
From 690019648d4c8f26d60fb1807f133c4422d5a2df Mon Sep 17 00:00:00 2001
From d3e8214a9c0c48714b565973a3350f68d5a9a2e6 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 25 Jun 2022 23:37:08 +1000
Subject: Fix haiku build
@@ -46,7 +46,7 @@ index ae60e3f..f15fec0 100644
2.36.1
From e29b19f1f7a423387449f03dd1b5a1a45841ea3f Mon Sep 17 00:00:00 2001
From eb2a94e767be8c27a76eef98ab26039ded052e28 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 25 Jun 2022 23:46:10 +1000
Subject: Don't restore termios settings
@@ -73,3 +73,45 @@ index 2c5d45b..2aeaad8 100644
--
2.36.1
From dc86bbd0a2a3727a92f69c8d66f39069ed6d1cbc Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 26 Jun 2022 16:11:21 +1000
Subject: Add stub function for getExecutablePath
diff --git a/whereami.c b/whereami.c
index 7bc2392..18479ca 100644
--- a/whereami.c
+++ b/whereami.c
@@ -785,6 +785,20 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
return length;
}
+#elif defined(__HAIKU__)
+
+WAI_FUNCSPEC
+int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length)
+{
+ return -1;
+}
+
+WAI_NOINLINE WAI_FUNCSPEC
+int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
+{
+ return -1;
+}
+
#else
#error unsupported platform
@@ -793,4 +807,4 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
#ifdef __cplusplus
}
-#endif
\ No newline at end of file
+#endif
--
2.36.1