summaryrefslogtreecommitdiff
path: root/editors/biew
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2023-02-15 07:50:46 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2023-02-15 07:50:46 +0000
commit690c40fa2b416c3b777c89f16b358b6c02490066 (patch)
tree65e516b3289936fe582e4fa4f9b5cee09ee2fdb3 /editors/biew
parentmail/exim: actually fix the bug in code (+) (diff)
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
Diffstat (limited to 'editors/biew')
-rw-r--r--editors/biew/files/patch-biewlib_sysdep_____os__dep.h14
1 files changed, 14 insertions, 0 deletions
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