diff options
author | rillig <rillig> | 2007-10-01 11:02:44 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-10-01 11:02:44 +0000 |
commit | b76a88e40aa581382fc4e8054b906e3a0fd8002d (patch) | |
tree | c49b8fa4732d2c8df32e03be14b8f50a5b344540 /x11/xmindpath/patches | |
parent | 63f4525bb75dbb20795c67f9717f0ddc21f00fc0 (diff) | |
download | pkgsrc-b76a88e40aa581382fc4e8054b906e3a0fd8002d.tar.gz |
Added three patches to make the package work on Solaris.
Diffstat (limited to 'x11/xmindpath/patches')
-rw-r--r-- | x11/xmindpath/patches/patch-ab | 58 | ||||
-rw-r--r-- | x11/xmindpath/patches/patch-ac | 44 | ||||
-rw-r--r-- | x11/xmindpath/patches/patch-ad | 12 |
3 files changed, 114 insertions, 0 deletions
diff --git a/x11/xmindpath/patches/patch-ab b/x11/xmindpath/patches/patch-ab new file mode 100644 index 00000000000..79d4da81a06 --- /dev/null +++ b/x11/xmindpath/patches/patch-ab @@ -0,0 +1,58 @@ +$NetBSD: patch-ab,v 1.3 2007/10/01 11:02:45 rillig Exp $ + +--- main.c.orig 1998-10-01 01:58:17.000000000 +0200 ++++ main.c 2007-10-01 12:55:46.375715000 +0200 +@@ -33,16 +33,20 @@ + */ + + #include <sys/time.h> ++#include <err.h> + #include <stdio.h> + #include <unistd.h> + #include <stdlib.h> + #include <fcntl.h> + #include <termios.h> + #include <signal.h> ++#include <string.h> + #include <X11/X.h> + #include <X11/extensions/XTest.h> + #include <X11/keysym.h> + ++#include "uucplock.h" ++ + #ifdef X_DISPLAY_MISSING + # error this program cannot be compiled without X11. + #endif +@@ -51,6 +55,13 @@ + # define REMOTE_DEVICE "/dev/tty02" /*biased to VAIO505 :-P*/ + #endif + ++#ifndef __P ++# define __P(X) X ++#endif ++#ifndef MDMBUF ++# define MDMBUF 0 ++#endif ++ + static char *remote = REMOTE_DEVICE; + static int debug = 0; + #define dprintf(x) { if (debug) fprintf x; } +@@ -144,8 +155,18 @@ main(argc, argv) + } + tcgetattr(fd, &old); + raw = old; ++#if defined(__sun) ++ raw.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); ++ raw.c_oflag &= ~OPOST; ++ raw.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); ++ raw.c_cflag &= ~(CSIZE|PARENB); ++ raw.c_cflag |= CS8; ++ cfsetispeed(&raw, B1200); ++ cfsetospeed(&raw, B1200); ++#else + cfmakeraw(&raw); + cfsetspeed(&raw, B1200); ++#endif + raw.c_cflag &= ~(CSIZE|PARENB|CSTOPB|MDMBUF); + raw.c_cflag |= CS8|CREAD|CLOCAL; + tcsetattr(fd, TCSANOW, &raw); diff --git a/x11/xmindpath/patches/patch-ac b/x11/xmindpath/patches/patch-ac new file mode 100644 index 00000000000..682be778c09 --- /dev/null +++ b/x11/xmindpath/patches/patch-ac @@ -0,0 +1,44 @@ +$NetBSD: patch-ac,v 1.1 2007/10/01 11:02:45 rillig Exp $ + +--- uucplock.c.orig 1999-12-02 03:58:31.000000000 +0100 ++++ uucplock.c 2007-10-01 12:47:24.989964000 +0200 +@@ -35,9 +35,13 @@ + static char sccsid[] = "@(#)uucplock.c 5.5 (Berkeley) 6/1/90"; + #endif /* not lint */ + +-#include <sys/file.h> +-#include <sys/dir.h> ++#include <dirent.h> + #include <errno.h> ++#include <fcntl.h> ++#include <signal.h> ++#include <stdio.h> ++#include <string.h> ++#include <unistd.h> + + #include "pathnames.h" + +@@ -47,13 +51,12 @@ static char sccsid[] = "@(#)uucplock.c 5 + * -1 - failure + */ + ++int + uu_lock(ttyname) + char *ttyname; + { +- extern int errno; + int fd, pid; + char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; +- off_t lseek(); + + (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname); + fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0664); +@@ -81,7 +84,7 @@ uu_lock(ttyname) + * The process that locked the file isn't running, so + * we'll lock it ourselves + */ +- if (lseek(fd, 0L, L_SET) < 0) { ++ if (lseek(fd, 0L, SEEK_SET) < 0) { + (void)close(fd); + perror("lock lseek"); + return(-1); diff --git a/x11/xmindpath/patches/patch-ad b/x11/xmindpath/patches/patch-ad new file mode 100644 index 00000000000..43fe8fce259 --- /dev/null +++ b/x11/xmindpath/patches/patch-ad @@ -0,0 +1,12 @@ +$NetBSD: patch-ad,v 1.1 2007/10/01 11:02:45 rillig Exp $ + +--- uucplock.h.orig 2007-10-01 12:47:25.072297000 +0200 ++++ uucplock.h 2007-10-01 12:47:25.072925000 +0200 +@@ -0,0 +1,7 @@ ++#ifndef UUCPLOCK_H ++#define UUCPLOCK_H ++ ++extern int uu_lock(char *); ++extern int uu_unlock(char *); ++ ++#endif |