diff --git a/srcpkgs/openssh/patches/libressl.patch b/srcpkgs/openssh/patches/libressl.patch index 8e9bd110adf..a114d7bb31d 100644 --- a/srcpkgs/openssh/patches/libressl.patch +++ b/srcpkgs/openssh/patches/libressl.patch @@ -1,17 +1,18 @@ --- openbsd-compat/openbsd-compat.h.orig +++ openbsd-compat/openbsd-compat.h -@@ -201,22 +201,11 @@ +@@ -201,22 +201,18 @@ int getpeereid(int , uid_t *, gid_t *); #endif --#ifdef HAVE_ARC4RANDOM --# ifndef HAVE_ARC4RANDOM_STIR --# define arc4random_stir() --# endif --#else - unsigned int arc4random(void); --void arc4random_stir(void); --#endif /* !HAVE_ARC4RANDOM */ ++unsigned int arc4random(void); + #ifdef HAVE_ARC4RANDOM + # ifndef HAVE_ARC4RANDOM_STIR + # define arc4random_stir() + # endif + #else +-unsigned int arc4random(void); + void arc4random_stir(void); + #endif /* !HAVE_ARC4RANDOM */ -#ifndef HAVE_ARC4RANDOM_BUF void arc4random_buf(void *, size_t);