Fresco/Prague/src/IPC ptybuf.cc,1.20,1.21

Tobias Hunger <[email protected]> Thu, 06 Nov 2003 20:26:08 +0000
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Prague/src/IPC
In directory purcel:/tmp/cvs-serv31210/Prague/src/IPC

Modified Files:
	ptybuf.cc 
Log Message:
Include config.hh so that the defines we are using here are actually defined.
This should close bug241.


Index: ptybuf.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Prague/src/IPC/ptybuf.cc,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- ptybuf.cc	6 Nov 2003 18:04:01 -0000	1.20
+++ ptybuf.cc	6 Nov 2003 20:26:05 -0000	1.21
@@ -23,6 +23,7 @@
  * MA 02139, USA.
  */
 #include <Prague/IPC/ptybuf.hh>
+#include <Prague/config.hh>
 #include <cerrno>
 #include <sstream>
 #include <iostream>
@@ -57,16 +58,13 @@
     throw std::runtime_error(s + ": " + strerror(errno));
 }
 
-//inline char ctrl(char c) { return c & 0x1f;}
-
 ptybuf::ptybuf() :
   ipcbuf(std::ios::in | std::ios::out)
 { }
 
 ptybuf::~ptybuf()
 {
-    if (my_tty != -1)
-        close(my_tty);
+    if (my_tty != -1) close(my_tty);
 }
 
 std::streamsize ptybuf::sys_read(char *buf, std::streamsize len) throw(std::runtime_error)