aboutsummaryrefslogtreecommitdiffstats
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
parentc43bb529f7b324e80d94795c5c34fe9b6848bc32 (diff)
downloadydb-cf8a166dfde05806be6e1881e52f38757b70fbb0.tar.gz
Use ADDINCL GLOBAL for the sake of simplicity and predictability
-rw-r--r--contrib/libs/libc_compat/random/sys/random.h4
-rw-r--r--contrib/libs/libc_compat/ya.make4
2 files changed, 5 insertions, 3 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
diff --git a/contrib/libs/libc_compat/ya.make b/contrib/libs/libc_compat/ya.make
index 8865d284d9..f70b32ee29 100644
--- a/contrib/libs/libc_compat/ya.make
+++ b/contrib/libs/libc_compat/ya.make
@@ -133,7 +133,7 @@ IF (PROVIDE_REALLOCARRAY)
reallocarray/reallocarray.c
)
ADDINCL(
- ONE_LEVEL contrib/libs/libc_compat/reallocarray
+ GLOBAL contrib/libs/libc_compat/reallocarray
)
ENDIF()
@@ -146,7 +146,7 @@ IF (PROVIDE_GETRANDOM_GETENTROPY)
random/getentropy.c
)
ADDINCL(
- ONE_LEVEL contrib/libs/libc_compat/random
+ GLOBAL contrib/libs/libc_compat/random
)
ENDIF()