From a9fbbc1d2c0a90d5c5b3a0363c650299f876a3d6 Mon Sep 17 00:00:00 2001
From: SASANO Takayoshi <uaa@uaa.org.uk>
Date: Sun, 24 Oct 2021 13:17:47 +0900
Subject: [PATCH] <pty.h>: linux only

not only Apple but also other OSes except Linux uses <util.h>.
for details, see
https://www.gnu.org/software/gnulib/manual/html_node/pty_002eh.html
---
 PseudoTTYController.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PseudoTTYController.cpp b/PseudoTTYController.cpp
index 12050648..97062eb4 100644
--- a/PseudoTTYController.cpp
+++ b/PseudoTTYController.cpp
@@ -32,10 +32,10 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <termios.h>
-#if defined(__APPLE__)
-	#include <util.h>
-#else
+#if defined(__linux__)
 	#include <pty.h>
+#else
+	#include <util.h>
 #endif