commit 73ec48334de6c3925206bbbec6765e0bf01d2120 parent 51365d26c1e3f2e7074ff863cae3dbe25d2a382b Author: Jochen Sprickerhof <git@jochen.sprickerhof.de> Date: Tue, 31 Dec 2019 16:41:39 +0100 ifdef util/pty.h (taken from st) Diffstat:
| M | scroll.c | | | 10 | +++++++--- |
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/scroll.c b/scroll.c @@ -16,9 +16,13 @@ #include <termios.h> #include <unistd.h> -// TODO: OpenBSD/Linux ifdef -#include <util.h> -//#include <pty.h> +#if defined(__linux) + #include <pty.h> +#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) + #include <util.h> +#elif defined(__FreeBSD__) || defined(__DragonFly__) + #include <libutil.h> +#endif typedef struct Line Line; struct Line {