summaryrefslogtreecommitdiff
path: root/Ports/joe/patches/ReadMe.md
blob: 1d2ec3688d430613e0c2a2b094983efa7a1a67d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Patches for joe's own editor

## `joe.patch`

Build a curseless joe's own editor, its only dependency is LibC.

- Add serenity to `config.sub`.
- Some hacks in joe source code to make it work.
    - Undefine the macro `TERMINFO` in `termcap.c`, or it will lead crash.
    - Define `__USE_MISC` manually in `checkwidths.c` for `ECHOCTL` and `ECHOKE`,
    see `Kernel/API/POSIX/termios.h`.
    - Remove the prefix `sys/`, because serenity does not have the header `fcntl.h`
    in `/usr/include/sys`.