freebsd-ports/net/libevnet/files/patch-compat__bsd__stdlib__arc4random.h
Ion-Mihai Tetcu ace25a2493 Commit the right patch, with the right name to the right port; it was
forgotten in the previous commit:

  Log:
    - Update to 0.3.11
    - Remove files/patch-src::lookup.c (adopted upstream)
    - Remove files/patch-Makefile; replicate instead in Makefile while respecting
    custom LOCALBASE

    PR:             141004
    Submitted by:   Sahil Tandon
    Approved by:    maintainer

Submitted by:	maintainer
2010-01-12 21:36:58 +00:00

17 lines
515 B
C

--- ./compat/bsd/stdlib/arc4random.h.orig 2009-11-29 07:02:28.000000000 +0200
+++ ./compat/bsd/stdlib/arc4random.h 2010-01-12 23:27:24.000000000 +0200
@@ -379,11 +379,11 @@
#ifndef HAVE_ARC4RANDOM_BUF
-#if defined __OpenBSD__
+#if defined __OpenBSD__ || defined __FreeBSD__
-#include <sys/param.h> /* OpenBSD */
+#include <sys/param.h> /* OpenBSD, FreeBSD */
-#if OpenBSD >= 200811
+#if OpenBSD >= 200811 || __FreeBSD_version >= 800107
#define HAVE_ARC4RANDOM_BUF 1
#else
#define HAVE_ARC4RANDOM_BUF 0