Files
RedBear-OS/recipes/wip/x11/xterm/redox.patch
T
vasilito 50b731f1b7 Red Bear OS — microkernel OS in Rust, based on Redox
Derivative of Redox OS (https://www.redox-os.org) adding:
- AMD GPU driver (amdgpu) via LinuxKPI compat layer
- ext4 filesystem support (ext4d scheme daemon)
- ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG)
- Custom branding (hostname, os-release, boot identity)

Build system is full upstream Redox with RBOS overlay in local/.
Patches for kernel, base, and relibc are symlinked from local/patches/
and protected from make clean/distclean. Custom recipes live in
local/recipes/ with symlinks into the recipes/ search path.

Build:  make all CONFIG_NAME=redbear-full
Sync:   ./local/scripts/sync-upstream.sh
2026-04-12 19:05:00 +01:00

77 lines
2.6 KiB
Diff

diff -ruwN xterm-398/main.c source/main.c
--- xterm-398/main.c 2025-03-08 06:03:19.000000000 -0700
+++ source/main.c 2025-05-05 21:25:41.492475745 -0600
@@ -162,6 +162,10 @@
#define USE_POSIX_SIGNALS
#endif
+#ifndef XTABS
+#define XTABS 0x01800
+#endif
+
#if defined(SYSV) && !defined(SVR4) && !defined(ISC22) && !defined(ISC30)
/* older SYSV systems cannot ignore SIGHUP.
Shell hangs, or you get extra shells, or something like that */
@@ -185,6 +189,10 @@
#define WTMP
#endif
+#ifdef __redox__
+#define USE_SYSV_PGRP
+#endif
+
#ifdef __SCO__
#ifndef _SVID3
#define _SVID3
@@ -3114,7 +3122,7 @@
}
}
-#if defined(__osf__) || (defined(__linux__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+#if defined(__osf__) || (defined(__linux__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__redox__)
#define USE_OPENPTY 1
static int opened_tty = -1;
#endif
@@ -4494,7 +4502,7 @@
/* make /dev/tty work */
ioctl(ttyfd, TIOCSCTTY, 0);
#endif
-#ifdef USE_SYSV_PGRP
+#if defined(USE_SYSV_PGRP) && !defined(__redox__)
/* We need to make sure that we are actually
* the process group leader for the pty. If
* we are, then we should now be able to open
diff -ruwN xterm-398/xterm.h source/xterm.h
--- xterm-398/xterm.h 2025-04-08 01:36:09.000000000 -0600
+++ source/xterm.h 2025-05-05 21:11:05.413561791 -0600
@@ -80,7 +80,7 @@
#define HAVE_PUTENV 1
#endif
-#if defined(CSRG_BASED) || defined(__GNU__) || defined(__minix)
+#if defined(CSRG_BASED) || defined(__GNU__) || defined(__minix) || defined(__redox__)
#define USE_POSIX_TERMIOS 1
#endif
@@ -208,7 +208,7 @@
#define HAVE_PTY_H
#endif
-#if !defined(USG) && !defined(__minix)
+#if !defined(USG) && !defined(__minix) && !defined(__redox__)
#define HAVE_SETITIMER 1
#else
#define HAVE_SETITIMER 0
diff -ruwN xterm-398/xterm_io.h source/xterm_io.h
--- xterm-398/xterm_io.h 2024-09-30 02:03:20.000000000 -0600
+++ source/xterm_io.h 2025-05-05 21:11:05.413561791 -0600
@@ -57,7 +57,7 @@
#define USE_SYSV_TERMIO
#endif
-#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__INTERIX) || defined(__APPLE__) || defined(__UNIXWARE__) || defined(__hpux)
+#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__INTERIX) || defined(__APPLE__) || defined(__UNIXWARE__) || defined(__hpux) || defined(__redox__)
#ifndef USE_POSIX_TERMIOS
#define USE_POSIX_TERMIOS
#endif