fix_missing_include_for_node_extern.patch 824 B

1234567891011121314151617181920212223242526
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Shelley Vohr <[email protected]>
  3. Date: Wed, 15 Nov 2023 12:25:39 +0100
  4. Subject: fix: missing include for NODE_EXTERN
  5. At some point it seems that node.h was removed from the include chain,
  6. causing the following error:
  7. ../../third_party/electron_node/src/module_wrap.h:33:1: error: unknown type name 'NODE_EXTERN'
  8. 33 | NODE_EXTERN v8::MaybeLocal<v8::Promise> ImportModuleDynamically(
  9. | ^
  10. This should be upstreamed.
  11. diff --git a/src/module_wrap.h b/src/module_wrap.h
  12. index c51eb99ce3eb54bc30ae922e0357b637b09d53c6..55317ced78ee9ceaa13f7e00477c59370eb335fa 100644
  13. --- a/src/module_wrap.h
  14. +++ b/src/module_wrap.h
  15. @@ -7,6 +7,7 @@
  16. #include <string>
  17. #include <vector>
  18. #include "base_object.h"
  19. +#include "node.h"
  20. namespace node {