Skip to content

Commit

Permalink
otp_net.c: use EAI_OVERFLOW when it is defined
Browse files Browse the repository at this point in the history
Closes: #1254
Signed-off-by: Sergey Fedorov <[email protected]>
  • Loading branch information
barracuda156 committed Aug 19, 2024
1 parent 5c41ac8 commit b4b3fae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libAtomVM/otp_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ static term eai_errno_to_term(int err, GlobalContext *glb)
#ifdef HAVE_EXTENDED_EAI_ERRNO
case EAI_BADHINTS:
return globalcontext_make_atom(glb, ATOM_STR("\xB", "eaibadhints"));
#ifdef EAI_OVERFLOW
case EAI_OVERFLOW:
return globalcontext_make_atom(glb, ATOM_STR("\xB", "eaioverflow"));
#endif
case EAI_PROTOCOL:
return globalcontext_make_atom(glb, ATOM_STR("\xB", "eaiprotocol"));
case EAI_SYSTEM:
Expand Down

0 comments on commit b4b3fae

Please sign in to comment.