File electron-16-system-node-headers.patch of Package nodejs-electron
Index: electron-17.1.0/third_party/electron_node/common.gypi
===================================================================
--- src/third_party/electron_node/common.gypi.orig 2025-03-06 22:25:15.650295769 +0100
+++ src/third_party/electron_node/common.gypi 2025-03-07 07:06:10.532421547 +0100
@@ -486,6 +486,10 @@
'NOMINMAX',
],
}],
+ [ 'OS in "linux"', {
+ 'cflags': [ '-I/usr/include/electron' ],
+ 'libraries': [ '-lz' ],
+ }],
[ 'OS in "linux freebsd openbsd solaris aix os400"', {
'cflags': [ '-pthread' ],
'ldflags': [ '-pthread' ],