summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2014-01-08 01:47:31 +0000
committerpooka <pooka@NetBSD.org>2014-01-08 01:47:31 +0000
commitfa876fca1a3704a5e70feacdfb951cc3fd30aabc (patch)
tree6fd260d4f2ec60653b93c1fbeaff10777ba5f499
parent3991daa0dbe7545a751fe9e87b6db8f0916bd49d (diff)
do as the comment says and #if defined(every_other) || defined(platform) || ...
===> #if !defined(__NetBSD__)
-rw-r--r--lib/librumpuser/rumpuser_port.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/librumpuser/rumpuser_port.h b/lib/librumpuser/rumpuser_port.h
index bcb79c6ef36..db13972de10 100644
--- a/lib/librumpuser/rumpuser_port.h
+++ b/lib/librumpuser/rumpuser_port.h
@@ -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 @@ clock_gettime(clockid_t clk, struct timespec *ts)
#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>