diff --git a/deps/nghttp3/nghttp3.gyp b/deps/nghttp3/nghttp3.gyp index 3421ba7cf60b15..85ca26cbc8d820 100644 --- a/deps/nghttp3/nghttp3.gyp +++ b/deps/nghttp3/nghttp3.gyp @@ -26,36 +26,41 @@ }, }, }], + ['OS=="linux"', { + 'defines': [ + 'HAVE_ARPA_INET_H', + ], + }], ], 'direct_dependent_settings': { 'defines': [ 'NGHTTP3_STATICLIB' ], 'include_dirs': [ 'lib/includes' ] }, 'sources': [ - 'lib/nghttp3_buf.c', - 'lib/nghttp3_conv.c', - 'lib/nghttp3_err.c', - 'lib/nghttp3_gaptr.c', - 'lib/nghttp3_idtr.c', - 'lib/nghttp3_map.c', - 'lib/nghttp3_pq.c', - 'lib/nghttp3_qpack_huffman.c', - 'lib/nghttp3_range.c', - 'lib/nghttp3_ringbuf.c', - 'lib/nghttp3_stream.c', - 'lib/nghttp3_vec.c', - 'lib/nghttp3_conn.c', - 'lib/nghttp3_debug.c', - 'lib/nghttp3_frame.c', - 'lib/nghttp3_http.c', - 'lib/nghttp3_ksl.c', - 'lib/nghttp3_mem.c', - 'lib/nghttp3_qpack.c', - 'lib/nghttp3_qpack_huffman_data.c', - 'lib/nghttp3_rcbuf.c', - 'lib/nghttp3_str.c', - 'lib/nghttp3_tnode.c', - 'lib/nghttp3_version.c' + 'lib/nghttp3_buf.c', + 'lib/nghttp3_conv.c', + 'lib/nghttp3_err.c', + 'lib/nghttp3_gaptr.c', + 'lib/nghttp3_idtr.c', + 'lib/nghttp3_map.c', + 'lib/nghttp3_pq.c', + 'lib/nghttp3_qpack_huffman.c', + 'lib/nghttp3_range.c', + 'lib/nghttp3_ringbuf.c', + 'lib/nghttp3_stream.c', + 'lib/nghttp3_vec.c', + 'lib/nghttp3_conn.c', + 'lib/nghttp3_debug.c', + 'lib/nghttp3_frame.c', + 'lib/nghttp3_http.c', + 'lib/nghttp3_ksl.c', + 'lib/nghttp3_mem.c', + 'lib/nghttp3_qpack.c', + 'lib/nghttp3_qpack_huffman_data.c', + 'lib/nghttp3_rcbuf.c', + 'lib/nghttp3_str.c', + 'lib/nghttp3_tnode.c', + 'lib/nghttp3_version.c' ] } ] diff --git a/deps/ngtcp2/ngtcp2.gyp b/deps/ngtcp2/ngtcp2.gyp index 1da2cba93dc19d..f86dcc5693e98a 100644 --- a/deps/ngtcp2/ngtcp2.gyp +++ b/deps/ngtcp2/ngtcp2.gyp @@ -33,6 +33,12 @@ }, }, }], + ['OS=="linux"', { + 'defines': [ + 'HAVE_ARPA_INET_H', + 'HAVE_NETINET_IN_H', + ], + }], ], 'direct_dependent_settings': { 'defines': [ 'NGTCP2_STATICLIB' ],