patch-Python_random_c 463 B

12345678910111213141516
  1. $OpenBSD: patch-Python_random_c,v 1.1 2016/12/19 20:47:26 rpointel Exp $
  2. Issue #28932: http://bugs.python.org/issue28932
  3. --- Python/random.c.orig Sat Dec 17 21:05:07 2016
  4. +++ Python/random.c Sun Dec 18 09:43:27 2016
  5. @@ -3,7 +3,7 @@
  6. #include <windows.h>
  7. #else
  8. #include <fcntl.h>
  9. -#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)
  10. +#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) && !defined(__OpenBSD__)
  11. #include <sys/random.h>
  12. #endif
  13. #endif