Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser OpenBSD support



details:   https://anonhg.NetBSD.org/src/rev/a28692ef563f
branches:  trunk
changeset: 325826:a28692ef563f
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 08 01:45:29 2014 +0000

description:
OpenBSD support

from Justin Cormack via github

diffstat:

 lib/librumpuser/rumpuser_port.h |  4 ++--
 lib/librumpuser/rumpuser_sp.c   |  6 +++---
 lib/librumpuser/sp_common.c     |  3 ++-
 3 files changed, 7 insertions(+), 6 deletions(-)

diffs (62 lines):

diff -r 1797fe57d95b -r a28692ef563f lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h   Tue Jan 07 21:54:17 2014 +0000
+++ b/lib/librumpuser/rumpuser_port.h   Wed Jan 08 01:45:29 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_port.h,v 1.23 2013/12/18 20:24:04 pooka Exp $ */
+/*     $NetBSD: rumpuser_port.h,v 1.24 2014/01/08 01:45:29 pooka Exp $ */
 
 /*
  * Portability header for non-NetBSD platforms.
@@ -94,7 +94,7 @@
 
 /* maybe this should be !__NetBSD__ ? */
 #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__)     \
-    || defined(__DragonFly__) || defined(__APPLE__) || defined(__CYGWIN__)
+    || defined(__DragonFly__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__CYGWIN__)
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
diff -r 1797fe57d95b -r a28692ef563f lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Tue Jan 07 21:54:17 2014 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Wed Jan 08 01:45:29 2014 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.61 2013/11/01 23:22:13 pooka Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.62 2014/01/08 01:45:29 pooka Exp $  */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -37,7 +37,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.61 2013/11/01 23:22:13 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.62 2014/01/08 01:45:29 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -90,7 +90,7 @@
 
 
 /* how to use atomic ops on Linux? */
-#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__OpenBSD__)
 static pthread_mutex_t discomtx = PTHREAD_MUTEX_INITIALIZER;
 
 static void
diff -r 1797fe57d95b -r a28692ef563f lib/librumpuser/sp_common.c
--- a/lib/librumpuser/sp_common.c       Tue Jan 07 21:54:17 2014 +0000
+++ b/lib/librumpuser/sp_common.c       Wed Jan 08 01:45:29 2014 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: sp_common.c,v 1.37 2013/12/31 00:25:17 pooka Exp $    */
+/*      $NetBSD: sp_common.c,v 1.38 2014/01/08 01:45:29 pooka Exp $    */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -36,6 +36,7 @@
 #include <sys/queue.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <sys/uio.h>
 
 #include <arpa/inet.h>
 #include <netinet/in.h>



Home | Main Index | Thread Index | Old Index