From fe889efc69bc942550f83f2ce9cf70907653d80d Mon Sep 17 00:00:00 2001 From: hqzing Date: Tue, 23 Sep 2025 01:57:57 +0800 Subject: [PATCH] build: add the missing macro definitions for OpenHarmony MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/59804 Reviewed-By: Anna Henningsen Reviewed-By: Michaël Zasso Reviewed-By: James M Snell Reviewed-By: Ulises Gascón Reviewed-By: Rafael Gonzaga --- deps/ngtcp2/ngtcp2.gyp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ngtcp2/ngtcp2.gyp b/deps/ngtcp2/ngtcp2.gyp index 08de0fca86..608735e845 100644 --- a/deps/ngtcp2/ngtcp2.gyp +++ b/deps/ngtcp2/ngtcp2.gyp @@ -125,7 +125,7 @@ }, }, }], - ['OS=="linux" or OS=="android"', { + ['OS=="linux" or OS=="android" or OS=="openharmony"', { 'defines': [ 'HAVE_ARPA_INET_H', 'HAVE_NETINET_IN_H', @@ -207,7 +207,7 @@ ['OS!="win"', { 'defines': ['HAVE_UNISTD_H'] }], - ['OS=="linux" or OS=="android"', { + ['OS=="linux" or OS=="android" or OS=="openharmony"', { 'defines': [ 'HAVE_ARPA_INET_H', 'HAVE_NETINET_IN_H',