Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Hurd support, part 1
details: https://anonhg.NetBSD.org/src/rev/869cab428cd2
branches: trunk
changeset: 339896:869cab428cd2
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Aug 16 11:37:39 2015 +0000
description:
Hurd support, part 1
from Robert Millan <rmh%gnu.org@localhost> via rumpkernel-users
diffstat:
lib/librumpuser/rumpuser_port.h | 4 ++--
lib/librumpuser/rumpuser_sp.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 67f6003ac408 -r 869cab428cd2 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h Sun Aug 16 11:06:54 2015 +0000
+++ b/lib/librumpuser/rumpuser_port.h Sun Aug 16 11:37:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_port.h,v 1.44 2015/03/05 00:25:39 pooka Exp $ */
+/* $NetBSD: rumpuser_port.h,v 1.45 2015/08/16 11:37:39 pooka Exp $ */
#ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
#define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
@@ -63,7 +63,7 @@
#include "rumpuser_config.h"
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
#define _GNU_SOURCE
#endif
diff -r 67f6003ac408 -r 869cab428cd2 lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c Sun Aug 16 11:06:54 2015 +0000
+++ b/lib/librumpuser/rumpuser_sp.c Sun Aug 16 11:37:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_sp.c,v 1.69 2015/02/04 12:55:47 pooka Exp $ */
+/* $NetBSD: rumpuser_sp.c,v 1.70 2015/08/16 11:37:39 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.69 2015/02/04 12:55:47 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.70 2015/08/16 11:37:39 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -89,8 +89,8 @@
#define PROTOMINOR 4
-/* how to use atomic ops on Linux? */
-#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__OpenBSD__)
+/* either no atomic ops, or we haven't figured out how to use them */
+#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__OpenBSD__) || defined(__GNU__) || defined(__GLIBC__)
static pthread_mutex_t discomtx = PTHREAD_MUTEX_INITIALIZER;
static void
Home |
Main Index |
Thread Index |
Old Index