diff options
author | midipix <writeonce@midipix.org> | 2018-12-16 18:26:52 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-18 20:38:41 -0500 |
commit | fbb5430cd995284a15df0264289a3a5c033a0746 (patch) | |
tree | 7a5694e58a86c550b886d5fea991b89f5196ef52 /profiles/osapi/midipix.h | |
parent | 8405f1c9462f7f4dca9bca9576d05daa4bc23f77 (diff) | |
download | sbpython3-fbb5430cd995284a15df0264289a3a5c033a0746.tar.bz2 sbpython3-fbb5430cd995284a15df0264289a3a5c033a0746.tar.xz |
osapi: handle the getrandom(2) syscall in os-specific headers.
Diffstat (limited to 'profiles/osapi/midipix.h')
-rw-r--r-- | profiles/osapi/midipix.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/profiles/osapi/midipix.h b/profiles/osapi/midipix.h index bf94a2b..300e361 100644 --- a/profiles/osapi/midipix.h +++ b/profiles/osapi/midipix.h @@ -6,6 +6,9 @@ #define HAVE_DIRENT_H 1 #define HAVE_NETPACKET_PACKET_H 1 +/* interfaces */ +#define HAVE_GETRANDOM_SYSCALL 1 + /* os characteristics */ #define RETSIGTYPE void #define SHLIB_EXT ".so" @@ -15,4 +18,10 @@ #define TANH_PRESERVES_ZERO_SIGN 1 #define TIME_WITH_SYS_TIME 1 +/* getrandom */ +#ifndef GRND_RANDOM +#define GRND_NONBLOCK (0x01) +#define GRND_RANDOM (0x02) +#endif + #endif |