we don't use the libutil anymore !
[apps/madtty.git] / madtty / madtty.c
index 13f6026..f76e743 100644 (file)
 #include <errno.h>
 #include <stdlib.h>
 #include <fcntl.h>
-#ifdef USE_PTY
-#include <pty.h>
-#endif
 #include <stdio.h>
 #include <string.h>
+#include <sys/ioctl.h>
 
 #include "madtty.h"
 #include "roteprivate.h"
@@ -213,9 +211,6 @@ run_process(const char *path, const char **argv, int *fd_ptr, int *pid_ptr)
     return 0;
 }
 
-
-#ifdef USE_PTY
-
 pid_t rote_vt_forkpty(RoteTerm *rt, const char *path, const char *argv[])
 {
     struct winsize ws;
@@ -240,8 +235,6 @@ void rote_vt_forsake_child(RoteTerm *rt)
     rt->childpid = 0;
 }
 
-#endif
-
 void rote_vt_update(RoteTerm *rt)
 {
     char buf[512];