Permalink
Browse files

non-Win32 platforms don't have set_errno but allow errno=X instead.

  • Loading branch information...
GerHobbelt committed Jun 3, 2012
1 parent 82ef416 commit e66d2d910c91c534c6918998b9d2c64a90adf287
Showing with 1 addition and 1 deletion.
  1. +1 −1 socketpair.c
View
@@ -121,7 +121,7 @@ int dumb_socketpair(SOCKET socks[2], int make_overlapped)
int dumb_socketpair(int socks[2], int dummy)
{
if (socks == 0) {
- set_errno(EINVAL);
+ errno = EINVAL;
return -1;
}
dummy = socketpair(AF_LOCAL, SOCK_STREAM, 0, socks);

0 comments on commit e66d2d9

Please sign in to comment.