]> prime8.dev >> repos - ttyd.git/commitdiff
Fix pty.h compile error on FreeBSD (FreeBSD uses libutil.h instead of util.h or pty.h)
authorNeel Chauhan <neel@neelc.org>
Fri, 14 Oct 2016 00:21:56 +0000 (20:21 -0400)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 15 Oct 2016 14:01:06 +0000 (22:01 +0800)
src/server.h

index 2cd52f691a5267e35de9f898f439c0bd6a7b391e..b61077c15e2ec02c34c74a07554f5697a0438efa 100644 (file)
@@ -23,6 +23,8 @@
 
 #ifdef __APPLE__
 #include <util.h>
+#elif defined(__FreeBSD__)
+#include <libutil.h>
 #else
 #include <pty.h>
 #endif