nemiver r804 - in trunk: . src/dbgengine src/uicommon
- From: dodji svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r804 - in trunk: . src/dbgengine src/uicommon
- Date: Mon, 5 May 2008 08:11:49 +0100 (BST)
Author: dodji
Date: Mon May 5 07:11:49 2008
New Revision: 804
URL: http://svn.gnome.org/viewvc/nemiver?rev=804&view=rev
Log:
[terminal widget] handle pty.h on FreeBSD.
include the right headers in lieu of pty.h, on FreeBSD.
Patch from Romain TartiÃre <romain blogreen org>
Modified:
trunk/ChangeLog
trunk/src/dbgengine/nmv-gdb-engine.cc
trunk/src/uicommon/nmv-terminal.cc
Modified: trunk/src/dbgengine/nmv-gdb-engine.cc
==============================================================================
--- trunk/src/dbgengine/nmv-gdb-engine.cc (original)
+++ trunk/src/dbgengine/nmv-gdb-engine.cc Mon May 5 07:11:49 2008
@@ -28,7 +28,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
-#include <pty.h>
#include <termios.h>
#include <sstream>
#include <boost/variant.hpp>
Modified: trunk/src/uicommon/nmv-terminal.cc
==============================================================================
--- trunk/src/uicommon/nmv-terminal.cc (original)
+++ trunk/src/uicommon/nmv-terminal.cc Mon May 5 07:11:49 2008
@@ -23,7 +23,14 @@
*See COPYRIGHT file copyright information.
*/
#include "nmv-terminal.h"
-#include <pty.h>
+#if defined(_GNU_SOURCE)
+# include <pty.h>
+#elif defined(__FreeBSD__)
+# include <sys/types.h>
+# include <sys/ioctl.h>
+# include <termios.h>
+# include <libutil.h>
+#endif
#include <iostream>
#include <gtkmm/bin.h>
#include <gtkmm/main.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]