summaryrefslogtreecommitdiff
path: root/Ports/joe/patches/joe.patch
blob: ef8c3d0b208e84c3859bdbd2ab5a7df140175cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff -u -r joe-4.6/config.sub joe-4.6-patched/config.sub
--- joe-4.6/config.sub	2018-01-11 00:29:29.000000000 +0800
+++ joe-4.6-patched/config.sub	2022-05-15 11:01:52.017408784 +0800
@@ -1374,7 +1374,7 @@
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -serenity*)
 	# Remember, each alternative MUST END IN *, to match a version number.
 		;;
 	-qnx*)
diff -u -r joe-4.6/joe/termcap.c joe-4.6-patched/joe/termcap.c
--- joe-4.6/joe/termcap.c	2018-01-11 00:28:34.000000000 +0800
+++ joe-4.6-patched/joe/termcap.c	2022-05-15 11:02:58.185406191 +0800
@@ -7,6 +7,8 @@
  */
 #include "types.h"
 
+#undef TERMINFO	// undefine this manually, or it will lead crash
+
 #ifdef TERMINFO
 
 #ifdef __CYGWIN__
diff -u -r joe-4.6/joe/util/checkwidths.c joe-4.6-patched/joe/util/checkwidths.c
--- joe-4.6/joe/util/checkwidths.c	2018-01-11 00:28:34.000000000 +0800
+++ joe-4.6-patched/joe/util/checkwidths.c	2022-05-15 11:04:04.225403604 +0800
@@ -5,6 +5,8 @@
 
 */
 
+#define __USE_MISC	// for ECHOCTL and ECHOKE
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -12,7 +14,7 @@
 #include <arpa/inet.h>
 #include <stddef.h>
 #include <poll.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>	// the prefix "sys/" is not needed on serenity
 #include <termios.h>
 
 #define TO_CHAR_OK(c) ((char)(c))