Skip to content

Commit f4e6d85

Browse files
committed
fix: flags for ngtcp2 on IBM i
similar to aix IBM i does not support certain network flags we are getting the following build errors: ``` ../deps/ngtcp2/ngtcp2/examples/shared.cc:68:63: error: 'IPTOS_ECN_MASK' was not declared in this scope 68 | return *reinterpret_cast<uint8_t *>(CMSG_DATA(cmsg)) & IPTOS_ECN_MASK; | ^~~~~~~~~~~~~~ ../deps/ngtcp2/ngtcp2/examples/shared.cc:80:22: error: 'IPTOS_ECN_MASK' was not declared in this scope 80 | return tos & IPTOS_ECN_MASK; | ^~~~~~~~~~~~~~ ```
1 parent 1d49478 commit f4e6d85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/ngtcp2/ngtcp2.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
'HAVE_NETINET_IP_H',
273273
],
274274
'conditions': [
275-
['OS=="aix" or OS=="win"', {
275+
['OS=="aix" or OS=="win" or OS=="os400"', {
276276
# AIX does not support some of the networking features used in
277277
# the test server. Windows also lacks the Unix-specific headers
278278
# and system calls required by the ngtcp2 examples.
@@ -330,7 +330,7 @@
330330
'HAVE_NETINET_IP_H',
331331
],
332332
'conditions': [
333-
['OS=="aix" or OS=="win"', {
333+
['OS=="aix" or OS=="win" OS=="os400"', {
334334
# AIX does not support some of the networking features used in
335335
# the test client. Windows also lacks the Unix-specific headers
336336
# and system calls required by the ngtcp2 examples.

0 commit comments

Comments
 (0)