Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Jun 21, 2024
1 parent 96cf209 commit 70b1a4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/emnapi/include/node/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ extern "C" {
#endif

#include <stddef.h>
#include "uv/unix.h"
#include <stdint.h>

/* Internal type, do not use. */
struct uv__queue {
struct uv__queue* next;
struct uv__queue* prev;
};

#include "uv/unix.h"

#define UV_EXTERN /* nothing */

typedef enum {
Expand Down
5 changes: 2 additions & 3 deletions packages/emnapi/src/threadsafe_function.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
#include <stdatomic.h>
#include <pthread.h>
#include <errno.h>
#include "uv/queue.h"

#include "uv.h"
#include "uv/queue.h"

EXTERN_C_START

Expand All @@ -21,7 +20,7 @@ static const unsigned int kMaxIterationCount = 1000;

struct data_queue_node {
void* data;
void* q[2];
struct uv__queue q;
};

struct napi_threadsafe_function__ {
Expand Down

0 comments on commit 70b1a4f

Please sign in to comment.