Ticket #62278: libgcrypt-random-rndlinux.patch

File libgcrypt-random-rndlinux.patch, 423 bytes (added by grumpybozo (Bill Cole), 4 years ago)

Patch to fix libgcrypt 1.9.0 on older systems.

  • random/rndlinux.c

    a b  
    3333#include <unistd.h>
    3434#include <fcntl.h>
    3535#if defined(__APPLE__) && defined(__MACH__)
     36#include <Availability.h>
     37#ifdef __MAC_10_11
    3638extern int getentropy (void *buf, size_t buflen) __attribute__ ((weak_import));
    3739#define HAVE_GETENTROPY
    3840#endif
     41#endif
    3942#if defined(__linux__) || !defined(HAVE_GETENTROPY)
    4043#ifdef HAVE_SYSCALL
    4144# include <sys/syscall.h>