Skip to content

Commit f4a5805

Browse files
committed
fix: patch binding.c for missing UV_ENODATA
1 parent e2237fe commit f4a5805

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/prebuilds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
module_version: ${{ inputs.module_version }}
2727
platform: ${{ matrix.platform }}
2828
arch: ${{ matrix.arch }}
29+
patch_file: "binding.c.patch"
2930

3031
release:
3132
if: ${{ inputs.publish_release }}

binding.c.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- a/binding.c
2+
+++ b/binding.c
3+
@@ -5,6 +5,11 @@
4+
5+
#include "include/fs-ext.h"
6+
#include "macros.h"
7+
+
8+
+// Compatibility fix for nodejs-mobile Android builds
9+
+#ifndef UV_ENODATA
10+
+#define UV_ENODATA (-4024)
11+
+#endif
12+
13+
typedef struct {
14+
fs_ext_lock_t req;

0 commit comments

Comments
 (0)