diff options
author | thegeorg <thegeorg@yandex-team.com> | 2023-10-17 11:13:39 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2023-10-17 12:03:00 +0300 |
commit | cf8a166dfde05806be6e1881e52f38757b70fbb0 (patch) | |
tree | 618f4a49b0a7483e91bc8fd2dcd972f44faea1b6 | |
parent | c43bb529f7b324e80d94795c5c34fe9b6848bc32 (diff) | |
download | ydb-cf8a166dfde05806be6e1881e52f38757b70fbb0.tar.gz |
Use ADDINCL GLOBAL for the sake of simplicity and predictability
-rw-r--r-- | contrib/libs/libc_compat/random/sys/random.h | 4 | ||||
-rw-r--r-- | contrib/libs/libc_compat/ya.make | 4 |
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() |