aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libgamma-error.h')
-rw-r--r--src/lib/libgamma-error.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h
index 7d38568..77564d7 100644
--- a/src/lib/libgamma-error.h
+++ b/src/lib/libgamma-error.h
@@ -35,7 +35,7 @@
* `LIBGAMMA_DEVICE_REQUIRE_GROUP` is returned.
*/
#ifndef __WIN32__
-extern gid_t libgamma_group_gid;
+extern __thread gid_t libgamma_group_gid;
#else
extern short libgamma_group_gid;
#endif
@@ -46,7 +46,11 @@ extern short libgamma_group_gid;
* `NULL` if the name of the group `libgamma_group_gid`
* cannot be determined.
*/
+#ifndef __WIN32__
+extern __thread const char* libgamma_group_name;
+#else
extern const char* libgamma_group_name;
+#endif
/**