[nemiver] Fixup nmv-terminal.cc for OpenBSD



commit 3e9290abf0a2ffab5d407c29705832a1d50d59aa
Author: Landry Breuil <landry fr homeunix org>
Date:   Mon Apr 13 14:59:13 2009 +0200

    Fixup nmv-terminal.cc for OpenBSD
    
    	* src/uicommon/nmv-terminal.cc: include utils.h, pty.h and unistd.h
    	for OpenBSD.
---
 src/uicommon/nmv-terminal.cc |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/uicommon/nmv-terminal.cc b/src/uicommon/nmv-terminal.cc
index b81294c..81dc488 100644
--- a/src/uicommon/nmv-terminal.cc
+++ b/src/uicommon/nmv-terminal.cc
@@ -23,14 +23,19 @@
  *See COPYRIGHT file copyright information.
  */
 #include "nmv-terminal.h"
-#if !defined(__FreeBSD__)
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__))
 # include <pty.h>
 #else
 # include <sys/types.h>
 # include <sys/ioctl.h>
 # include <termios.h>
+#if defined(__FreeBSD__)
 # include <libutil.h>
+#else
+# include <util.h>
+#endif
 #endif
+#include <unistd.h>
 #include <iostream>
 #include <gtkmm/bin.h>
 #include <gtkmm/main.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]