build: add the missing macro definitions for OpenHarmony

PR-URL: https://github.com/nodejs/node/pull/59804
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
hqzing
2025-09-23 01:57:57 +08:00
committed by GitHub
parent 0ec1d186f4
commit fe889efc69

View File

@@ -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',