0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-23 11:02:43 +00:00
Files
termux-packages/x11-packages/tilix/source-gx-tilix-terminal-terminal.d.patch
2025-04-07 00:28:23 +02:00

21 lines
650 B
Diff

--- a/source/gx/tilix/terminal/terminal.d
+++ b/source/gx/tilix/terminal/terminal.d
@@ -185,6 +185,8 @@ struct SyncInputEvent {
string text;
}
+extern (C) int grantpt(int __fd);
+
/**
* This class is a composite widget that consists of the VTE Terminal
* widget and the title bar. From the perspective of a session this is
@@ -2831,7 +2833,7 @@ private:
int pty_master = pty.getFd();
- import core.sys.posix.stdlib: grantpt, unlockpt, ptsname;
+ import core.sys.posix.stdlib: unlockpt, ptsname;
import core.sys.posix.fcntl: open, O_RDWR;
if (grantpt(pty_master) != 0) {