summaryrefslogtreecommitdiff
path: root/editors/codelite/patches/patch-Plugin_wxterminal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/codelite/patches/patch-Plugin_wxterminal.cpp')
-rw-r--r--editors/codelite/patches/patch-Plugin_wxterminal.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/editors/codelite/patches/patch-Plugin_wxterminal.cpp b/editors/codelite/patches/patch-Plugin_wxterminal.cpp
new file mode 100644
index 00000000000..3a6a623d5c4
--- /dev/null
+++ b/editors/codelite/patches/patch-Plugin_wxterminal.cpp
@@ -0,0 +1,26 @@
+$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