aboutsummaryrefslogtreecommitdiffstats
path: root/comms/fldigi/files/patch-src_misc_configuration.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comms/fldigi/files/patch-src_misc_configuration.cxx')
-rw-r--r--comms/fldigi/files/patch-src_misc_configuration.cxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/comms/fldigi/files/patch-src_misc_configuration.cxx b/comms/fldigi/files/patch-src_misc_configuration.cxx
new file mode 100644
index 000000000000..7844fdb65720
--- /dev/null
+++ b/comms/fldigi/files/patch-src_misc_configuration.cxx
@@ -0,0 +1,30 @@
+--- src/misc/configuration.cxx.orig 2013-03-28 08:57:53.000000000 -0500
++++ src/misc/configuration.cxx 2013-03-28 08:59:54.000000000 -0500
+@@ -901,8 +901,6 @@
+
+ void configuration::testCommPorts()
+ {
+- int retval;
+-
+ inpTTYdev->clear();
+ inpRIGdev->clear();
+ inpXmlRigDevice->clear();
+@@ -919,6 +917,7 @@
+ #endif
+
+ #ifdef __linux__
++ int retval;
+ bool ret = false;
+ DIR* sys = NULL;
+ char cwd[PATH_MAX] = { '.', '\0' };
+@@ -965,9 +964,7 @@
+ "/dev/ttyS%u",
+ "/dev/ttyUSB%u",
+ "/dev/usb/ttyUSB%u"
+-#elif defined(__FreeBSD__)
+- "/dev/ttyd%u"
+-#elif defined(__OpenBSD__) || defined(__NetBSD__)
++#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ "/dev/tty%2.2u"
+ #elif defined(__CYGWIN__)
+ "/dev/ttyS%u"