commit 25c86c9c73ca561aa3ca4aaf118bd74d15d26ca1 parent 6f9f727ca8ca5e76b05b181293c50930e359be43 Author: Jochen Sprickerhof <git@jochen.sprickerhof.de> Date: Tue, 11 Feb 2020 19:19:58 +0100 ifdef util/pty.h (taken from st) Diffstat:
M | ptty.c | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ptty.c b/ptty.c @@ -9,7 +9,14 @@ #include <string.h> #include <termios.h> #include <unistd.h> -#include <util.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 void die(const char *fmt, ...)