nemiver r802 - in trunk: . src/common



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]