Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/nbperf Don't use arc4random for the tools build on N...
details: https://anonhg.NetBSD.org/src/rev/e2a09c853ba4
branches: trunk
changeset: 979818:e2a09c853ba4
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 12 14:21:18 2021 +0000
description:
Don't use arc4random for the tools build on NetBSD either.
compat_defs.h explicitly forces _POSIX_SOURCE and this hides the
prototype in stdlib.h.
diffstat:
usr.bin/nbperf/nbperf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cd64ebbceb1c -r e2a09c853ba4 usr.bin/nbperf/nbperf.c
--- a/usr.bin/nbperf/nbperf.c Tue Jan 12 08:03:19 2021 +0000
+++ b/usr.bin/nbperf/nbperf.c Tue Jan 12 14:21:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nbperf.c,v 1.6 2021/01/07 16:03:08 joerg Exp $ */
+/* $NetBSD: nbperf.c,v 1.7 2021/01/12 14:21:18 joerg Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: nbperf.c,v 1.6 2021/01/07 16:03:08 joerg Exp $");
+__RCSID("$NetBSD: nbperf.c,v 1.7 2021/01/12 14:21:18 joerg Exp $");
#include <sys/endian.h>
#include <err.h>
@@ -62,7 +62,7 @@
exit(1);
}
-#if HAVE_NBTOOL_CONFIG_H && !defined(__NetBSD__)
+#if HAVE_NBTOOL_CONFIG_H
#define arc4random() rand()
#endif
Home |
Main Index |
Thread Index |
Old Index