Skip to content

Commit

Permalink
Socket: Define AI_V4MAPPED for OpenBSD (#1217)
Browse files Browse the repository at this point in the history
OpenBSDで定義されないマクロをデフォルトの値(0)で定義します。
マクロの定義条件は汎用的にしたためOpenBSDであるかチェックはしません。

参考にしたコミット
nodejs/node@75340f3

修正にあたり不具合報告をしていただきありがとうございました。
https://mevius.5ch.net/test/read.cgi/unix/1568040383/850-851n
  • Loading branch information
ma8ma committed Aug 6, 2023
1 parent 2cb11c4 commit a6bb171
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jdlib/jdsocket.cpp
Expand Up @@ -24,6 +24,11 @@
#include <iomanip>
#endif

// OpenBSD does not define the macro
#ifndef AI_V4MAPPED
#define AI_V4MAPPED 0
#endif


namespace {

Expand Down

0 comments on commit a6bb171

Please sign in to comment.