Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add missing <algorithm> include
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 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,20 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: John Kleinschmidt <jkleinsc@electronjs.org> | ||
Date: Wed, 16 Nov 2022 16:58:45 -0500 | ||
Subject: chore: add missing <algorithm> include | ||
|
||
https://github.com/nodejs/node/commit/4124b037743abb8f80a9d4b78a3b3f6aa64a18f9 added a call | ||
to std::all_of, but did not add the needed header include. | ||
|
||
diff --git a/src/inspector_socket.cc b/src/inspector_socket.cc | ||
index 8001d893e1fdcc339d8c766c3dd2c5155b36e8cc..c7331567581be1ef884982cd4a166113f9d2fd09 100644 | ||
--- a/src/inspector_socket.cc | ||
+++ b/src/inspector_socket.cc | ||
@@ -6,6 +6,7 @@ | ||
|
||
#include "openssl/sha.h" // Sha-1 hash | ||
|
||
+#include <algorithm> | ||
#include <cstring> | ||
#include <map> | ||
|