summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-12-29 12:32:50 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-12-29 12:32:50 -0500
commit5ab5841a3e8f6482fed1a71a51a04822a518d988 (patch)
tree517b373b6423ef2cc4dcad9533b0be0d7b663b54 /src
parent54c92293a608f3412c4ad59ed2e85f1cc7a9d4da (diff)
src/shared/missing.h: add __NR_getrandom for other arches
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/shared/missing.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 9f6177511e..00b5f7811c 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -45,6 +45,16 @@
#ifndef __NR_getrandom
# if defined __x86_64__
# define __NR_getrandom 318
+# elif defined(__i386__)
+# define __NR_getrandom 355
+# elif defined(__arm__) || defined(__aarch64__)
+# define __NR_getrandom 384
+# elif defined(__ia64__)
+# define __NR_getrandom 1339
+# elif defined(__m68k__)
+# define __NR_getrandom 352
+# elif defined(__s390x__)
+# define __NR_getrandom 349
# else
# warning "__NR_getrandom unknown for your architecture"
# define __NR_getrandom 0xffffffff