-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from michalbiesek/feat-bump-18.20.2-lts-disabl…
…e-rand Disable usage of <sys/random.h> in older version of glibc
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
disable usage of <sys/random.h> | ||
|
||
--- /dev/null | ||
+++ deps/cares/config/linux/ares_config.h | ||
@@ -116,7 +116,9 @@ | ||
#define HAVE_GETNAMEINFO 1 | ||
|
||
/* Define to 1 if you have `getrandom` */ | ||
+#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
#define HAVE_GETRANDOM 1 | ||
+#endif | ||
|
||
/* Define to 1 if you have `getservbyport_r` */ | ||
#define HAVE_GETSERVBYPORT_R 1 | ||
@@ -329,7 +331,9 @@ | ||
#define HAVE_SYS_PARAM_H 1 | ||
|
||
/* Define to 1 if you have the <sys/random.h> header file. */ | ||
+#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
#define HAVE_SYS_RANDOM_H 1 | ||
+#endif | ||
|
||
/* Define to 1 if you have the <sys/select.h> header file. */ | ||
#define HAVE_SYS_SELECT_H 1 |