Skip to content

Commit 0a96daa

Browse files
committed
Conditionalize pty.h include
1 parent 08d8be9 commit 0a96daa

File tree

1 file changed

+5
-0
lines changed
  • graalpython/python-libposix/src

1 file changed

+5
-0
lines changed

graalpython/python-libposix/src/posix.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@
7575
#include <sys/mman.h>
7676
#include <unistd.h>
7777
#include <pwd.h>
78+
79+
#ifdef __APPLE__
80+
#include <util.h>
81+
#else
7882
#include <pty.h>
83+
#endif
7984

8085

8186
int64_t call_getpid() {

0 commit comments

Comments
 (0)