Skip to content

Commit

Permalink
Fixed errno on BSD socket
Browse files Browse the repository at this point in the history
  • Loading branch information
afxgroup committed Sep 29, 2023
1 parent 63420ed commit d266147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/socket/init_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ SOCKET_CONSTRUCTOR(socket_init) {

/* Wire the library's errno variable to our local errno. */
tags[0].ti_Tag = SBTM_SETVAL(SBTC_ERRNOLONGPTR);
tags[0].ti_Data = (ULONG)&errno;
tags[0].ti_Data = (ULONG)&__clib4->_errno;

/* Also enable ^C checking if desired. */
tags[1].ti_Tag = SBTM_SETVAL(SBTC_BREAKMASK);
Expand Down

0 comments on commit d266147

Please sign in to comment.