diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-30 15:27:53 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-10-31 12:02:25 -0400 |
commit | eaa45759c706b458b60a3d951e469dc882def9e4 (patch) | |
tree | 5d52964c0be6ef2c5559df83758d0958cdf9a9e5 /src/shared/missing.h | |
parent | d21fc3fc8e550bbffcf575398d614f657231c4a3 (diff) |
util: don't block on getrandom()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/missing.h')
-rw-r--r-- | src/shared/missing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index 3cd90e39bd..9f6177511e 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -57,6 +57,14 @@ static inline int getrandom(void *buffer, size_t count, unsigned flags) { } #endif +#ifndef GRND_NONBLOCK +#define GRND_NONBLOCK 0x0001 +#endif + +#ifndef GRND_RANDOM +#define GRND_RANDOM 0x0002 +#endif + #ifndef BTRFS_IOCTL_MAGIC #define BTRFS_IOCTL_MAGIC 0x94 #endif |