summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/stty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/debugger/stty.cpp')
-rw-r--r--languages/ruby/debugger/stty.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp
index 73ea4784..2e52096d 100644
--- a/languages/ruby/debugger/stty.cpp
+++ b/languages/ruby/debugger/stty.cpp
@@ -26,11 +26,6 @@
#include <config.h>
#endif
-#ifdef __osf__
-#define _XOPEN_SOURCE_EXTENDED
-#define O_NDELAY O_NONBLOCK
-#endif
-
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -64,7 +59,7 @@
#include <tqfile.h>
#include <tdelocale.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include "stty.h"
@@ -131,7 +126,7 @@ STTY::STTY(bool ext, const TQString &termAppName)
if (fout >= 0) {
ttySlave = TQString(tty_slave);
out = new TQSocketNotifier(fout, TQSocketNotifier::Read, this);
- connect( out, TQT_SIGNAL(activated(int)), this, TQT_SLOT(OutReceived(int)) );
+ connect( out, TQ_SIGNAL(activated(int)), this, TQ_SLOT(OutReceived(int)) );
}
}
}
@@ -160,7 +155,7 @@ STTY::~STTY()
int STTY::findTTY()
{
int ptyfd = -1;
- bool needGrantPty = TRUE;
+ bool needGrantPty = true;
// Find a master pty that we can open ////////////////////////////////
@@ -173,7 +168,7 @@ int STTY::findTTY()
strncpy(tty_slave, ptsname(ptyfd), 50);
grantpt(ptyfd);
unlockpt(ptyfd);
- needGrantPty = FALSE;
+ needGrantPty = false;
#endif
// first we try UNIX PTY's
@@ -187,7 +182,7 @@ int STTY::findTTY()
struct stat sbuf;
sprintf(tty_slave,"/dev/pts/%d",ptyno);
if (stat(tty_slave,&sbuf) == 0 && S_ISCHR(sbuf.st_mode))
- needGrantPty = FALSE;
+ needGrantPty = false;
else {
close(ptyfd);
ptyfd = -1;
@@ -232,7 +227,7 @@ int STTY::findTTY()
}
if (ptyfd >= 0) {
- if (needGrantPty && !chownpty(ptyfd, TRUE)) {
+ if (needGrantPty && !chownpty(ptyfd, true)) {
fprintf(stderr,"tdevelop: chownpty failed for device %s::%s.\n",pty_master,tty_slave);
fprintf(stderr," : This means the session can be eavesdroped.\n");
fprintf(stderr," : Make sure konsole_grantpty is installed and setuid root.\n");