aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/random/sys/random.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2023-10-17 11:13:39 +0300
committerthegeorg <thegeorg@yandex-team.com>2023-10-17 12:03:00 +0300
commitcf8a166dfde05806be6e1881e52f38757b70fbb0 (patch)
tree618f4a49b0a7483e91bc8fd2dcd972f44faea1b6 /contrib/libs/libc_compat/random/sys/random.h
parentc43bb529f7b324e80d94795c5c34fe9b6848bc32 (diff)
downloadydb-cf8a166dfde05806be6e1881e52f38757b70fbb0.tar.gz
Use ADDINCL GLOBAL for the sake of simplicity and predictability
Diffstat (limited to 'contrib/libs/libc_compat/random/sys/random.h')
-rw-r--r--contrib/libs/libc_compat/random/sys/random.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/libs/libc_compat/random/sys/random.h b/contrib/libs/libc_compat/random/sys/random.h
index b5b1662c27..fcd94856e2 100644
--- a/contrib/libs/libc_compat/random/sys/random.h
+++ b/contrib/libs/libc_compat/random/sys/random.h
@@ -6,7 +6,9 @@ extern "C" {
#include <sys/types.h>
-#define SYS_getrandom 318
+#if !defined(SYS_getrandom)
+ #define SYS_getrandom 318
+#endif
#define GRND_NONBLOCK 0x0001
#define GRND_RANDOM 0x0002