File xview-read-lseek-type.patch of Package xview
recent tumbleweed throws compile time errors about conflicting declarations
of read() and of lseek(); try to avoid these compile time errors
== to be applied after xview-debian.patch ==
--- a/lib/libxview/notify/ndet_read.c 1993-06-29 07:18:04.000000000 +0200
+++ b/lib/libxview/notify/ndet_read.c 2022-10-18 08:30:39.809061193 +0200
@@ -29,11 +29,11 @@
static Notify_client ndet_read_nclient = (Notify_client) & ndet_read_done;
-extern int
+extern ssize_t
read(fd, buf, nbytes)
register int fd;
- char *buf;
- int nbytes;
+ void *buf;
+ size_t nbytes;
{
int ndelay;
Notify_error return_code;
--- a/lib/libxview/notify/sys_read.c 2022-10-18 08:18:25.632804625 +0200
+++ b/lib/libxview/notify/sys_read.c 2022-10-18 08:34:17.565106601 +0200
@@ -25,11 +25,11 @@
#endif /* SVR4 */
#include <xview_private/ntfy.h>
-pkg_private int
+pkg_private ssize_t
notify_read(fd, buf, nbytes)
int fd;
- char *buf;
- int nbytes;
+ void *buf;
+ size_t nbytes;
{
#ifndef __linux__
return (syscall(SYS_read, fd, buf, nbytes));
--- a/lib/libxview/ttysw/tty_init.c 2022-10-18 12:12:57.986847659 +0200
+++ b/lib/libxview/ttysw/tty_init.c 2022-10-18 12:54:09.782733532 +0200
@@ -91,7 +91,7 @@
#endif
-extern long lseek();
+extern off_t lseek();
char *textsw_checkpoint_undo();
/* static */ void ttysw_parseargs();