[nemiver: 2/5] Port nmv-proc-utils.cc to OpenBSD
- From: Dodji Seketeli <dodji src gnome org>
- To: svn-commits-list gnome org
- Subject: [nemiver: 2/5] Port nmv-proc-utils.cc to OpenBSD
- Date: Fri, 13 Mar 2009 07:37:50 -0400 (EDT)
commit 2b94baf19b2232feeac7813f3349d010ce11cf7c
Author: Landry Breuil <landry rhaalovely net>
Date: Fri Mar 13 09:56:14 2009 +0100
Port nmv-proc-utils.cc to OpenBSD
* src/common/nmv-proc-utils.cc: Add missing #include util.h for
OpenBSD.
---
src/common/nmv-proc-utils.cc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/common/nmv-proc-utils.cc b/src/common/nmv-proc-utils.cc
index e279227..d1a3208 100644
--- a/src/common/nmv-proc-utils.cc
+++ b/src/common/nmv-proc-utils.cc
@@ -33,6 +33,8 @@
# include <sys/types.h>
# include <sys/ioctl.h>
# include <libutil.h>
+#elif defined(__OpenBSD__)
+#include <util.h>
#endif
#include <termios.h>
#include <vector>
@@ -42,8 +44,8 @@
#include "nmv-exception.h"
#include "nmv-log-stream-utils.h"
-#if defined(__FreeBSD__) && !defined(__MAX_BAUD)
-# define __MAX_BAUD B38400
+#if (defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__MAX_BAUD)
+#define __MAX_BAUD B38400
#endif
namespace nemiver {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]