summaryrefslogtreecommitdiff
path: root/graphics/opendis/patches
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld>2000-05-12 03:07:40 +0000
committersommerfeld <sommerfeld>2000-05-12 03:07:40 +0000
commit9c9f849ffcb0b36dc7e18e9e04929f3d9e8e85b6 (patch)
tree53f95a8360fab3efe7af054512ae32db7bae026d /graphics/opendis/patches
parent2a4987398ef3df45231e648b3acd5f5e38d3a8c0 (diff)
downloadpkgsrc-9c9f849ffcb0b36dc7e18e9e04929f3d9e8e85b6.tar.gz
ODS, the Open Digita Services project, is an effort to write Open
Source tools for accessing Digita cameras from Linux and other unix operating systems. ODS has been tested with and is known to work with the following cameras: Kodak DC-220 Kodak DC-260 Kodak DC-265 Kodak DC-290 The Minolta EX-1500 has been reported to work with ODS, but the interface needs some debugging. ODS will not support cameras that don't use Digita; this includes the Kodak DC-200, DC-210, DC-240, DC-280, and earlier cameras.
Diffstat (limited to 'graphics/opendis/patches')
-rw-r--r--graphics/opendis/patches/patch-aa49
1 files changed, 49 insertions, 0 deletions
diff --git a/graphics/opendis/patches/patch-aa b/graphics/opendis/patches/patch-aa
new file mode 100644
index 00000000000..4ece25f4d62
--- /dev/null
+++ b/graphics/opendis/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/05/12 03:07:40 sommerfeld Exp $
+
+--- src/nss.c.orig Sat Jan 8 16:09:52 2000
++++ src/nss.c Thu May 11 22:58:35 2000
+@@ -37,6 +37,10 @@
+ #include <stdlib.h>
+ #include <termios.h>
+
++#ifdef __NetBSD__
++#include <sys/ioctl.h>
++#endif
++
+ /*--------------------------------------------------------------------------
+ Local include files */
+
+@@ -110,6 +114,9 @@
+
+ /* Put it in raw mode */
+ memset(&tty, 0, sizeof(tty));
++#ifdef __NetBSD__
++ memcpy(&tty, &camera->tty_original, sizeof(tty));
++#endif
+ cfmakeraw(&tty);
+
+ /* A respondent reports that his camera won't begin talking until
+@@ -135,8 +142,12 @@
+ will initiate beacon phase from the camera. */
+
+ /* off... */
++#ifdef __NetBSD__
++ (void) ioctl(camera->fd, TIOCCDTR, 0);
++#else
+ cfsetospeed(&tty, B0);
+ cfsetispeed(&tty, B0);
++#endif
+
+ if (tcsetattr(camera->fd, TCSANOW, &tty) == -1)
+ {
+@@ -157,6 +168,10 @@
+ /* ...on. */
+ cfsetospeed(&tty, B9600);
+ cfsetispeed(&tty, B9600);
++
++#ifdef __NetBSD__
++ (void) ioctl(camera->fd, TIOCSDTR, 0);
++#endif
+
+ if (tcsetattr(camera->fd, TCSANOW, &tty) == -1)
+ {