Module Name: src
Committed By: joerg
Date: Tue Jan 12 14:21:18 UTC 2021
Modified Files:
src/usr.bin/nbperf: nbperf.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/nbperf/nbperf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/nbperf/nbperf.c
diff -u src/usr.bin/nbperf/nbperf.c:1.6 src/usr.bin/nbperf/nbperf.c:1.7
--- src/usr.bin/nbperf/nbperf.c:1.6 Thu Jan 7 16:03:08 2021
+++ src/usr.bin/nbperf/nbperf.c Tue Jan 12 14:21:18 2021
@@ -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 @@ void usage(void)
exit(1);
}
-#if HAVE_NBTOOL_CONFIG_H && !defined(__NetBSD__)
+#if HAVE_NBTOOL_CONFIG_H
#define arc4random() rand()
#endif