summaryrefslogtreecommitdiff
path: root/libgphoto2_port/serial
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2006-10-22 20:37:26 +0000
committerMarcus Meissner <marcus@jet.franken.de>2006-10-22 20:37:26 +0000
commitc3989dd2956a0cc333285392a67680e57e61b284 (patch)
treef22d6ee510387ded8da5e4a182eefe32b8adcad9 /libgphoto2_port/serial
parenta8deec57da44ff58d3027d67f21ee84ea104c23f (diff)
downloadlibgphoto2-c3989dd2956a0cc333285392a67680e57e61b284.tar.gz
merged from NetBSD patchset.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9368 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/serial')
-rw-r--r--libgphoto2_port/serial/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgphoto2_port/serial/unix.c b/libgphoto2_port/serial/unix.c
index 17045166a..831ff4bdc 100644
--- a/libgphoto2_port/serial/unix.c
+++ b/libgphoto2_port/serial/unix.c
@@ -444,7 +444,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);