diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-30 15:27:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-30 15:27:53 +0100 |
commit | 97768fc5746ea97cb2d3ac6854b4fc7ce1c14f24 (patch) | |
tree | 38fc777e924deba4030a40d1ad8c1c5e22ea83e6 /src/shared/missing.h | |
parent | e3c72c21d62aadabf4df436c3e2c7219eeeccc1c (diff) |
util: don't block on getrandom()
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 85d3fec33c..7725e47298 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -149,6 +149,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 |