Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser do as the comment says and #if defined(every...



details:   https://anonhg.NetBSD.org/src/rev/79728698d369
branches:  trunk
changeset: 325827:79728698d369
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 08 01:47:31 2014 +0000

description:
do as the comment says and #if defined(every_other) || defined(platform) || ...
===> #if !defined(__NetBSD__)

diffstat:

 lib/librumpuser/rumpuser_port.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r a28692ef563f -r 79728698d369 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h   Wed Jan 08 01:45:29 2014 +0000
+++ b/lib/librumpuser/rumpuser_port.h   Wed Jan 08 01:47:31 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_port.h,v 1.24 2014/01/08 01:45:29 pooka Exp $ */
+/*     $NetBSD: rumpuser_port.h,v 1.25 2014/01/08 01:47:31 pooka Exp $ */
 
 /*
  * Portability header for non-NetBSD platforms.
@@ -92,9 +92,8 @@
 #include <sys/types.h>
 #include <sys/param.h>
 
-/* maybe this should be !__NetBSD__ ? */
-#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__)     \
-    || defined(__DragonFly__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__CYGWIN__)
+/* NetBSD is the only(?) platform with getenv_r() */
+#if !defined(__NetBSD__)
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>



Home | Main Index | Thread Index | Old Index