nemiver r802 - in trunk: . src/common
- From: dodji svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r802 - in trunk: . src/common
- Date: Mon, 5 May 2008 08:11:33 +0100 (BST)
Author: dodji
Date: Mon May 5 07:11:33 2008
New Revision: 802
URL: http://svn.gnome.org/viewvc/nemiver?rev=802&view=rev
Log:
[proc utils] handle some specific FreeBSD symbols/headers
Patch from Romain TartiÃre <romain blogreen org>
Modified:
trunk/ChangeLog
trunk/src/common/nmv-proc-utils.cc
Modified: trunk/src/common/nmv-proc-utils.cc
==============================================================================
--- trunk/src/common/nmv-proc-utils.cc (original)
+++ trunk/src/common/nmv-proc-utils.cc Mon May 5 07:11:33 2008
@@ -27,7 +27,13 @@
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
-#include <pty.h>
+#if defined(_GNU_SOURCE)
+# include <pty.h>
+#elif defined(__FreeBSD__)
+# include <sys/types.h>
+# include <sys/ioctl.h>
+# include <libutil.h>
+#endif
#include <termios.h>
#include <vector>
#include <memory>
@@ -36,6 +42,10 @@
#include "nmv-exception.h"
#include "nmv-log-stream-utils.h"
+#if defined(__FreeBSD__) && !defined(__MAX_BAUD)
+# define __MAX_BAUD B38400
+#endif
+
namespace nemiver {
namespace common {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]