File wasi_compile_flags.patch of Package nodejs12.14399

Index: node-v12.16.0/deps/uvwasi/uvwasi.gyp
===================================================================
--- node-v12.16.0.orig/deps/uvwasi/uvwasi.gyp
+++ node-v12.16.0/deps/uvwasi/uvwasi.gyp
@@ -20,6 +20,14 @@
       'direct_dependent_settings': {
         'include_dirs': ['include']
       },
+      'conditions': [
+        [ 'OS=="linux"', {
+          'defines': [
+            '_GNU_SOURCE',
+            '_POSIX_C_SOURCE=200112',
+          ],
+        }],
+      ],
     }
   ]
 }
openSUSE Build Service is sponsored by