ladybird/Ports/joe/patches/0003-Undefine-TERMINFO-in-termcap.c.patch

24 lines
544 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Snow <i@xkun.me>
Date: Sun, 15 May 2022 11:41:03 +0800
Subject: [PATCH] Undefine TERMINFO in termcap.c
Leaving it defined will lead to a crash.
---
joe/termcap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/joe/termcap.c b/joe/termcap.c
index 7f4a459..b6fb6f8 100644
--- a/joe/termcap.c
+++ b/joe/termcap.c
@@ -7,6 +7,8 @@
*/
#include "types.h"
+#undef TERMINFO // undefine this manually, or it will lead crash
+
#ifdef TERMINFO
#ifdef __CYGWIN__