summaryrefslogtreecommitdiff
path: root/src/ttylocker_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ttylocker_unix.cpp')
-rw-r--r--src/ttylocker_unix.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ttylocker_unix.cpp b/src/ttylocker_unix.cpp
index 67f3611..3e36d67 100644
--- a/src/ttylocker_unix.cpp
+++ b/src/ttylocker_unix.cpp
@@ -58,6 +58,8 @@
# include <QtCore/qstringlist.h>
#endif // defined (HAVE_BAUDBOY_H)
+QT_BEGIN_NAMESPACE_SERIALPORT
+
#if !(defined (HAVE_BAUDBOY_H) || defined (HAVE_LOCKDEV_H))
static
@@ -97,9 +99,6 @@ QString generateLockFileNameAsNamedForm(const char *portName)
#endif //!(defined (HAVE_BAUDBOY_H) || defined (HAVE_LOCKDEV_H))
-
-QT_BEGIN_NAMESPACE_SERIALPORT
-
// Try lock serial device. However, other processes can not access it.
bool TtyLocker::lock(const char *portName)
{