Skip to content

Commit 9895003

Browse files
fix of compilation error on macos
1 parent 96026f7 commit 9895003

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ptyprocess.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
#include <QElapsedTimer>
44
#include <QDebug>
55
#include <iostream>
6+
#ifdef Q_OS_MACOS
7+
#include <util.h>
8+
#else
69
#include <pty.h> // forkpty
10+
#endif
711
#include <unistd.h> // read, execvp, close, _exit
812
#include <fcntl.h> // fcntl
913
#include <sys/wait.h> // waitpid

0 commit comments

Comments
 (0)