build: add the missing macro definitions for OpenHarmony · nodejs/node@0b284d8

Original file line numberDiff line numberDiff line change

@@ -122,7 +122,7 @@

122122

},

123123

},

124124

}],

125-

['OS=="linux" or OS=="android"', {

125+

['OS=="linux" or OS=="android" or OS=="openharmony"', {

126126

'defines': [

127127

'HAVE_ARPA_INET_H',

128128

'HAVE_NETINET_IN_H',

@@ -175,7 +175,7 @@

175175

['OS!="win"', {

176176

'defines': ['HAVE_UNISTD_H']

177177

}],

178-

['OS=="linux" or OS=="android"', {

178+

['OS=="linux" or OS=="android" or OS=="openharmony"', {

179179

'defines': [

180180

'HAVE_ARPA_INET_H',

181181

'HAVE_NETINET_IN_H',