depot/pkgs/by-name/jo/joe/macos-fix.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

13 lines
354 B
Diff

diff -Naru i/joe/tty.c w/joe/tty.c
--- ./joe/tty.c 2018-01-10 17:28:34
+++ ../joe-i-4.6/joe/tty.c 2024-10-02 14:08:22
@@ -6,6 +6,9 @@
* This file is part of JOE (Joe's Own Editor)
*/
#include "types.h"
+#if defined(__APPLE__) && defined(__MACH__)
+#include <util.h>
+#endif
/* Needed for TIOCGWINSZ detection below */
#ifdef GWINSZ_IN_SYS_IOCTL