Fix compilation for windows.

This commit is contained in:
dt
2009-09-14 15:27:12 +02:00
parent e1ffc90055
commit 0b05bc2e18

View File

@@ -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()),