git: 690c40fa2b41 - main - editors/biew: unbreak the port's build against Clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Feb 2023 07:51:26 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=690c40fa2b416c3b777c89f16b358b6c02490066
commit 690c40fa2b416c3b777c89f16b358b6c02490066
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-02-15 07:50:46 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-02-15 07:50:46 +0000
editors/biew: unbreak the port's build against Clang 15
This quite old and obscure codebase typedefs its own `bhandle_t'
type as `void *' on 64-bit machines for some reason, feeding it
to POSIX file I/O functions that accept `int' as file descriptor
regardless of the machine word size. Remove this conditional.
Reported by: pkg-fallout
---
editors/biew/files/patch-biewlib_sysdep_____os__dep.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/editors/biew/files/patch-biewlib_sysdep_____os__dep.h b/editors/biew/files/patch-biewlib_sysdep_____os__dep.h
new file mode 100644
index 000000000000..5d1a0b83e4d1
--- /dev/null
+++ b/editors/biew/files/patch-biewlib_sysdep_____os__dep.h
@@ -0,0 +1,14 @@
+--- biewlib/sysdep/__os_dep.h.orig 2009-10-16 13:50:47 UTC
++++ biewlib/sysdep/__os_dep.h
+@@ -364,11 +364,7 @@ extern void __FASTCALL__ __OsRestoreTimer(void);
+ #define FILESIZE_MAX ULONG_MAX
+ #endif
+
+-#if __WORDSIZE >= 64
+-typedef void* bhandle_t;
+-#else
+ typedef int bhandle_t;
+-#endif
+ #define NULL_HANDLE ((bhandle_t)-1)
+
+ /** Closes opened stream