freebsd-ports/benchmarks/rawio/files/patch-ac
Greg Lehey 3aecce6126 Include sys/random.h, not machine/random.h.
This should fix the conditional build breakage introduced in revision
1.2
2001-01-04 06:58:01 +00:00

13 lines
342 B
Text

--- mkrandom.c.orig Sat Jan 1 19:47:33 2000
+++ mkrandom.c Thu Jan 27 21:32:52 2000
@@ -54,7 +54,9 @@
#include <sys/wait.h>
#include <sys/resource.h>
#include <signal.h>
-#include "random.h"
+#if !defined(__FreeBSD__) || !defined(__alpha__)
+#include <sys/random.h>
+#endif
/* submitted by Andy Doran <ad@psn.ie> */
#ifdef __NetBSD__