ladybird/Ports/joe/patches/0001-Define-__USE_MISC-in-checkwidths.c.patch

25 lines
647 B
Diff
Raw Normal View History

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] Define __USE_MISC in checkwidths.c
Define `__USE_MISC` manually in `checkwidths.c` for `ECHOCTL` and `ECHOKE`,
see `Kernel/API/POSIX/termios.h`.
---
joe/util/checkwidths.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/joe/util/checkwidths.c b/joe/util/checkwidths.c
index 509447d..944faef 100644
--- a/joe/util/checkwidths.c
+++ b/joe/util/checkwidths.c
@@ -5,6 +5,8 @@
*/
+#define __USE_MISC // for ECHOCTL and ECHOKE
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>