freebsd-ports/editors/biew/files/patch-biewlib_sysdep_____os__dep.h
Alexey Dokuchaev 690c40fa2b 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
2023-02-15 07:50:46 +00:00

14 lines
379 B
C

--- 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