summaryrefslogtreecommitdiff
path: root/libgphoto2_port/serial
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2006-01-20 22:41:11 +0000
committerMarcus Meissner <marcus@jet.franken.de>2006-01-20 22:41:11 +0000
commit6bc69cf7808071a8c805bf3f419ba062bec0f531 (patch)
tree486e6ecc940cba47662742d059af0e32f1b6edaa /libgphoto2_port/serial
parent26bec2ecae30a5f3ddb7a88a343ca9cb0adc9c63 (diff)
downloadlibgphoto2-6bc69cf7808071a8c805bf3f419ba062bec0f531.tar.gz
serial devices are called slightly different with FreeBSD >= 6.0
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8507 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/serial')
-rw-r--r--libgphoto2_port/serial/unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgphoto2_port/serial/unix.c b/libgphoto2_port/serial/unix.c
index 7007cbd0b..515cb9a25 100644
--- a/libgphoto2_port/serial/unix.c
+++ b/libgphoto2_port/serial/unix.c
@@ -108,7 +108,11 @@
/* FreeBSD */
#ifdef __FreeBSD__
+#if __FreeBSD_version < 600000
#define GP_PORT_SERIAL_PREFIX "/dev/cuaa%x"
+#else
+#define GP_PORT_SERIAL_PREFIX "/dev/cuad%x"
+#endif
#define GP_PORT_SERIAL_RANGE_LOW 0
#define GP_PORT_SERIAL_RANGE_HIGH (0xf)
#endif