27 lines
678 B
C++
27 lines
678 B
C++
|
$NetBSD: patch-Plugin_wxterminal.cpp,v 1.1 2016/06/15 22:04:17 kamil Exp $
|
||
|
|
||
|
Add switch for NetBSD to not fall under "other OS".
|
||
|
|
||
|
--- Plugin/wxterminal.cpp.orig 2016-01-30 10:49:18.000000000 +0000
|
||
|
+++ Plugin/wxterminal.cpp
|
||
|
@@ -39,7 +39,7 @@
|
||
|
#define SHELL_WRAPPER wxT("")
|
||
|
#else
|
||
|
|
||
|
-#if defined(__WXMAC__) || defined(__FreeBSD__)
|
||
|
+#if defined(__WXMAC__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||
|
#include <sys/wait.h>
|
||
|
#else
|
||
|
#include <wait.h>
|
||
|
@@ -55,6 +55,10 @@
|
||
|
#include <sys/ioctl.h>
|
||
|
#include <termios.h>
|
||
|
#include <libutil.h>
|
||
|
+#elif defined(__NetBSD__)
|
||
|
+#include <sys/ioctl.h>
|
||
|
+#include <termios.h>
|
||
|
+#include <util.h>
|
||
|
#else
|
||
|
#include <pty.h>
|
||
|
#endif
|