Skip to content

Instantly share code, notes, and snippets.

@vvavrychuk
Created July 7, 2014 08:57
Show Gist options
  • Save vvavrychuk/4d5e2c653ed62a886425 to your computer and use it in GitHub Desktop.
Save vvavrychuk/4d5e2c653ed62a886425 to your computer and use it in GitHub Desktop.
diff --git a/src/network/h_errno.c b/src/network/h_errno.c
index 4f700ce..ed4787f 100644
--- a/src/network/h_errno.c
+++ b/src/network/h_errno.c
@@ -1,7 +1,7 @@
#include <netdb.h>
#undef h_errno
-int h_errno;
+__thread int h_errno;
int *__h_errno_location(void)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment