Skip to content

Commit

Permalink
Merge pull request #1757 from wlemkows/win-errno
Browse files Browse the repository at this point in the history
jemalloc: fix setting errno on Windows
  • Loading branch information
krzycz authored Mar 27, 2017
2 parents 61506a0 + 9f6184b commit 08cd18e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jemalloc/include/jemalloc/internal/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ set_errno(int errnum)
{

#ifdef _WIN32
int err = errnum;
errno = err;
SetLastError(errnum);
#else
errno = errnum;
Expand Down

0 comments on commit 08cd18e

Please sign in to comment.