git: 7d2e8fe9a1b7 - main - devel/ghidra: Fails to build with GCC 14: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Aug 2025 11:48:18 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7d2e8fe9a1b769a82c705f8844604796cc8af7b8
commit 7d2e8fe9a1b769a82c705f8844604796cc8af7b8
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-08-18 11:43:59 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-08-18 11:47:08 +0000
devel/ghidra: Fails to build with GCC 14: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
Define __XSI_VISIBLE.
PR: 288305
Approved by: gatekeeper <tiago.gasiba@gmail.com>
---
.../files/patch-Ghidra_Features_FileFormats_build.gradle | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/devel/ghidra/files/patch-Ghidra_Features_FileFormats_build.gradle b/devel/ghidra/files/patch-Ghidra_Features_FileFormats_build.gradle
new file mode 100644
index 000000000000..14798fd01d44
--- /dev/null
+++ b/devel/ghidra/files/patch-Ghidra_Features_FileFormats_build.gradle
@@ -0,0 +1,11 @@
+--- Ghidra/Features/FileFormats/build.gradle.orig 2025-02-19 07:23:46 UTC
++++ Ghidra/Features/FileFormats/build.gradle
+@@ -63,6 +63,8 @@ model {
+ if (b.targetPlatform.operatingSystem.linux) {
+ b.cCompiler.define "LINUX"
+ b.cCompiler.define "_LINUX"
++ } else if (b.targetPlatform.operatingSystem.FreeBSD) {
++ b.cCompiler.args "-D__XSI_VISIBLE=1"
+ }
+ }
+ else if (b.toolChain in VisualCpp) {