Ticket #62278: libgcrypt-random-rndlinux.patch
File libgcrypt-random-rndlinux.patch, 423 bytes (added by grumpybozo (Bill Cole), 4 years ago) |
---|
-
random/rndlinux.c
a b 33 33 #include <unistd.h> 34 34 #include <fcntl.h> 35 35 #if defined(__APPLE__) && defined(__MACH__) 36 #include <Availability.h> 37 #ifdef __MAC_10_11 36 38 extern int getentropy (void *buf, size_t buflen) __attribute__ ((weak_import)); 37 39 #define HAVE_GETENTROPY 38 40 #endif 41 #endif 39 42 #if defined(__linux__) || !defined(HAVE_GETENTROPY) 40 43 #ifdef HAVE_SYSCALL 41 44 # include <sys/syscall.h>