]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Remove errno and errstr from meshlink_handle_t, add thread-local meshlink_errno.
[meshlink] / src / meshlink.c
index 23fe1dc4198335b5d4fe901482f7ecbf638ae09c..6d6b77f9707c72f5ee0e31aa8a4af82d7c2d07a0 100644 (file)
@@ -44,6 +44,8 @@ typedef struct {
 #define MSG_NOSIGNAL 0
 #endif
 
+__thread meshlink_errno_t meshlink_errno;
+
 //TODO: this can go away completely
 const var_t variables[] = {
        /* Server configuration */