From 56d1bf56ed38a443be104d48765a25ff9dd7e677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 22 Aug 2020 20:44:26 +0700 Subject: [PATCH] openssh: fix ~ldns,~ssl build option --- srcpkgs/openssh/patches/libressl.patch | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/srcpkgs/openssh/patches/libressl.patch b/srcpkgs/openssh/patches/libressl.patch index 8e9bd110ad..a114d7bb31 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);