From a4aeb322c75d79b9d9d3944a3425eba04dc338bb Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Fri, 26 Jun 2026 14:39:14 +0200 Subject: [PATCH] plugin/terminal: remove FFI cdefs Now provided by `ffi/posix_h` too. --- plugins/terminal.koplugin/main.lua | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/plugins/terminal.koplugin/main.lua b/plugins/terminal.koplugin/main.lua index ce33c8792..c49e836b7 100644 --- a/plugins/terminal.koplugin/main.lua +++ b/plugins/terminal.koplugin/main.lua @@ -12,20 +12,6 @@ local ffi = require("ffi") local C = ffi.C require("ffi/posix_h") --- for terminal emulator -ffi.cdef[[ -static const int SIGTERM = 15; - -int grantpt(int fd) __attribute__((nothrow, leaf)); -int unlockpt(int fd) __attribute__((nothrow, leaf)); -char *ptsname(int fd) __attribute__((nothrow, leaf)); -pid_t setsid(void) __attribute__((nothrow, leaf)); - -static const int TCIFLUSH = 0; -int tcdrain(int fd) __attribute__((nothrow, leaf)); -int tcflush(int fd, int queue_selector) __attribute__((nothrow, leaf)); -]] - local function check_prerequisites() -- We of course need to be able to manipulate pseudoterminals, -- but Kobo's init scripts fail to set this up...