pkgsrc/editors/codelite/patches/patch-Plugin_wxterminal.cpp
kamil 94ae2921ee Import codelite-9.1 as editors/codelite
CodeLite is an open source, free, cross platform IDE for the C/C++ programming
languages which runs on all major Platforms.

Originally packaged in pkgsrc-wip by myself.
2016-06-15 22:04:17 +00:00

26 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