summaryrefslogtreecommitdiff
path: root/devel/libgphoto2/patches/patch-aa
blob: cd91f5e3194d805e63f16446c11fcb9b0d6c6d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.3 2005/11/07 18:38:37 joerg Exp $

--- libgphoto2_port/serial/unix.c.orig	2005-11-07 18:17:05.000000000 +0000
+++ libgphoto2_port/serial/unix.c
@@ -438,7 +438,7 @@ gp_port_serial_open (GPPort *dev)
 	}
 	dev->pl->fd = -1;
 
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
         dev->pl->fd = open (port, O_RDWR | O_NOCTTY | O_NONBLOCK);
 #elif OS2
         fd = open (port, O_RDWR | O_BINARY);