Module Name:    src
Committed By:   pooka
Date:           Sun Aug 16 11:37:39 UTC 2015

Modified Files:
        src/lib/librumpuser: rumpuser_port.h rumpuser_sp.c

Log Message:
Hurd support, part 1

from Robert Millan <r...@gnu.org> via rumpkernel-users


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/librumpuser/rumpuser_port.h
cvs rdiff -u -r1.69 -r1.70 src/lib/librumpuser/rumpuser_sp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/rumpuser_port.h
diff -u src/lib/librumpuser/rumpuser_port.h:1.44 src/lib/librumpuser/rumpuser_port.h:1.45
--- src/lib/librumpuser/rumpuser_port.h:1.44	Thu Mar  5 00:25:39 2015
+++ src/lib/librumpuser/rumpuser_port.h	Sun Aug 16 11:37:39 2015
@@ -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
 

Index: src/lib/librumpuser/rumpuser_sp.c
diff -u src/lib/librumpuser/rumpuser_sp.c:1.69 src/lib/librumpuser/rumpuser_sp.c:1.70
--- src/lib/librumpuser/rumpuser_sp.c:1.69	Wed Feb  4 12:55:47 2015
+++ src/lib/librumpuser/rumpuser_sp.c	Sun Aug 16 11:37:39 2015
@@ -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 @@ static char banner[MAXBANNER];
 #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

Reply via email to