"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "random/rndlinux.c" between
libgcrypt-1.9.1.tar.bz2 and libgcrypt-1.9.2.tar.bz2

About: Libgcrypt is a general purpose library of cryptographic building blocks (originally based on GnuPG code).

rndlinux.c  (libgcrypt-1.9.1.tar.bz2):rndlinux.c  (libgcrypt-1.9.2.tar.bz2)
skipping to change at line 35 skipping to change at line 35
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_GETTIMEOFDAY #ifdef HAVE_GETTIMEOFDAY
# include <sys/times.h> # include <sys/times.h>
#endif #endif
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#if defined(__APPLE__) && defined(__MACH__) #if defined(__APPLE__) && defined(__MACH__)
#include <Availability.h>
#ifdef __MAC_10_11
extern int getentropy (void *buf, size_t buflen) __attribute__ ((weak_import)); extern int getentropy (void *buf, size_t buflen) __attribute__ ((weak_import));
#define HAVE_GETENTROPY #define HAVE_GETENTROPY
#endif #endif
#endif
#if defined(__linux__) || !defined(HAVE_GETENTROPY) #if defined(__linux__) || !defined(HAVE_GETENTROPY)
#ifdef HAVE_SYSCALL #ifdef HAVE_SYSCALL
# include <sys/syscall.h> # include <sys/syscall.h>
# ifdef __NR_getrandom # ifdef __NR_getrandom
# define getentropy(buf,buflen) syscall (__NR_getrandom, buf, buflen, 0) # define getentropy(buf,buflen) syscall (__NR_getrandom, buf, buflen, 0)
# endif # endif
#endif #endif
#endif #endif
#include "types.h" #include "types.h"
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)