diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-18 13:17:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-18 13:17:16 +0100 |
commit | a22ea751b62b7be2f879a77c71588d1b5aa2f643 (patch) | |
tree | 2d3268b4e3093ba51f3a6e99aff467f7453daa2e /config.h.in | |
parent | f4e5deb129c8e9a50175af83966e9c2f63c05cff (diff) | |
download | rspamd-a22ea751b62b7be2f879a77c71588d1b5aa2f643.tar.gz rspamd-a22ea751b62b7be2f879a77c71588d1b5aa2f643.zip |
Update libucl and use UCL_RANDOM_FUNCTION.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/config.h.in b/config.h.in index 41be3c587..695b43856 100644 --- a/config.h.in +++ b/config.h.in @@ -66,32 +66,32 @@ #ifdef HAVE_ENDIAN_H #include <endian.h> - #else + #else #ifdef HAVE_SYS_ENDIAN_H #include <sys/endian.h> #else #ifdef HAVE_MACHINE_ENDIAN_H #include <machine/endian.h> #else - #define LITTLE_ENDIAN 1234 - #define BIG_ENDIAN 4321 + #define LITTLE_ENDIAN 1234 + #define BIG_ENDIAN 4321 #if defined(i386) || defined(__i386) || defined(__amd64) || \ defined(BIT_ZERO_ON_RIGHT) || defined(__x86__) #define BYTE_ORDER LITTLE_ENDIAN #endif - + #if defined(__sparc) || defined(__sparc__) || defined(__powerpc__) #define BYTE_ORDER BIG_ENDIAN #endif - + #endif /* HAVE_MACHINE_ENDIAN_H */ #endif /* HAVE_SYS_ENDIAN_H */ #endif /* HAVE_ENDIAN_H */ - + #if !defined(BYTE_ORDER) # error "Undefined or unknown BYTE_ORDER" #endif - + #ifdef _MSC_VER # define RSPAMD_PACKED(name) \ __pragma(pack(push, 1)) struct name __pragma(pack(pop)) @@ -509,5 +509,7 @@ typedef off_t goffset; # define NBYTES(nbits) (((nbits) + BITSPERBYTE - 1) / BITSPERBYTE) #endif +extern uint64_t ottery_rand_uint64(void); +#define UCL_RANDOM_FUNCTION ottery_rand_uint64() #endif |