-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup: account for sys/random requirement that is not met by older gl…
…ibc versions
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 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
14 changes: 14 additions & 0 deletions
14
scripts/nodejs-patches/003-no-sys-random-on-older-glibc-node-52223.patch
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,14 @@ | ||
diff --git a/deps/cares/config/linux/ares_config.h b/deps/cares/config/linux/ares_config.h | ||
index 3cb135a35ca6..5940fcf2e007 100644 | ||
--- a/deps/cares/config/linux/ares_config.h | ||
+++ b/deps/cares/config/linux/ares_config.h | ||
@@ -329,7 +329,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 |