Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser Support DragonFly BSD.



details:   https://anonhg.NetBSD.org/src/rev/60dc09a76088
branches:  trunk
changeset: 782922:60dc09a76088
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 26 17:55:11 2012 +0000

description:
Support DragonFly BSD.

diffstat:

 lib/librumpuser/rumpuser_dl.c |  7 ++++---
 lib/librumpuser/rumpuser_sp.c |  6 +++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 7e9e89113279 -r 60dc09a76088 lib/librumpuser/rumpuser_dl.c
--- a/lib/librumpuser/rumpuser_dl.c     Mon Nov 26 17:54:51 2012 +0000
+++ b/lib/librumpuser/rumpuser_dl.c     Mon Nov 26 17:55:11 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_dl.c,v 1.9 2012/11/26 17:00:54 pooka Exp $   */
+/*      $NetBSD: rumpuser_dl.c,v 1.10 2012/11/26 17:55:11 pooka Exp $  */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -33,7 +33,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_dl.c,v 1.9 2012/11/26 17:00:54 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.10 2012/11/26 17:55:11 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -53,7 +53,8 @@
 #include <rump/rumpuser.h>
 
 #if defined(__ELF__) && (defined(__NetBSD__) || defined(__FreeBSD__)   \
-    || (defined(__sun__) && defined(__svr4__))) || defined(__linux__)
+    || (defined(__sun__) && defined(__svr4__))) || defined(__linux__)  \
+    || defined(__DragonFly__)
 static size_t symtabsize = 0, strtabsize = 0;
 static size_t symtaboff = 0, strtaboff = 0;
 static uint8_t *symtab = NULL;
diff -r 7e9e89113279 -r 60dc09a76088 lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Mon Nov 26 17:54:51 2012 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Mon Nov 26 17:55:11 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.49 2012/11/26 17:03:15 pooka Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.50 2012/11/26 17:55:11 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.49 2012/11/26 17:03:15 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.50 2012/11/26 17:55:11 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -117,7 +117,7 @@
        return discocnt;
 }
 
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 
 #include <machine/atomic.h>
 #define signaldisco()  atomic_add_int(&disco, 1)



Home | Main Index | Thread Index | Old Index