define SYS_getrandom on linux arm64 (#5378)

This commit is contained in:
Alex Gaynor 2020-08-05 22:11:06 -04:00 committed by GitHub
parent 4d2b52d4d1
commit 3a238400ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,10 +34,12 @@
* wheels, since that's the predominant way you get a situation where
* you don't have SYS_getrandom at compile time but do have the syscall
* at runtime */
#if defined __x86_64__
#if defined(__x86_64__)
#define SYS_getrandom 318
#elif defined(__i386__)
#define SYS_getrandom 355
#elif defined(__aarch64__)
#define SYS_getrandom 278
#endif
#endif
#endif /* __linux__ */