Commit 0b05bc2e authored by dt's avatar dt

Fix compilation for windows.

parent e1ffc900
......@@ -80,7 +80,11 @@ TrkGdbAdapter::TrkGdbAdapter()
m_bufferedMemoryRead = true;
m_rfcommDevice = "/dev/rfcomm0";
#ifdef Q_OS_WIN
int userId = 0;
#else
uid_t userId = getuid();
#endif
m_gdbServerName = QString("127.0.0.1:%1").arg(2222 + userId);
connect(&m_gdbProc, SIGNAL(readyReadStandardError()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment