Skip to content

Commit

Permalink
chore: add missing <algorithm> include
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Nov 17, 2022
1 parent ed6dbae commit 00fe61f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions patches/node/.patches
Expand Up @@ -50,3 +50,4 @@ api_pass_oomdetails_to_oomerrorcallback.patch
src_iwyu_in_cleanup_queue_cc.patch
fix_expose_lookupandcompile_with_parameters.patch
fix_prevent_changing_functiontemplateinfo_after_publish.patch
chore_add_missing_algorithm_include.patch
20 changes: 20 additions & 0 deletions patches/node/chore_add_missing_algorithm_include.patch
@@ -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>

0 comments on commit 00fe61f

Please sign in to comment.