[openssl] OpenSSL_1_1_1-stable update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Thu Sep 5 06:33:57 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  ce1ab24163e451b21de91d49ed8e8c45ccfbcae0 (commit)
      from  aa24cc01957f813beb5329c26ae581fe6b7482a7 (commit)


- Log -----------------------------------------------------------------
commit ce1ab24163e451b21de91d49ed8e8c45ccfbcae0
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Wed Sep 4 11:39:54 2019 +0200

    Cleanup includes in rand_unix.c
    
    Fixes #9757
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/9761)
    
    (cherry picked from commit 41ffd2ab09d24692c71850ccd7d5ff154196fe01)

-----------------------------------------------------------------------

Summary of changes:
 crypto/rand/rand_unix.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c
index d118360366..1f608c9565 100644
--- a/crypto/rand/rand_unix.c
+++ b/crypto/rand/rand_unix.c
@@ -19,11 +19,12 @@
 #include "internal/rand_int.h"
 #include <stdio.h>
 #include "internal/dso.h"
-#if defined(__linux)
-# include <asm/unistd.h>
-# include <sys/ipc.h>
-# include <sys/shm.h>
-# include <sys/utsname.h>
+#ifdef __linux
+# include <sys/syscall.h>
+# ifdef DEVRANDOM_WAIT
+#  include <sys/shm.h>
+#  include <sys/utsname.h>
+# endif
 #endif
 #if defined(__FreeBSD__) && !defined(OPENSSL_SYS_UEFI)
 # include <sys/types.h>


More information about the openssl-commits mailing list