Permalink
Browse files

netbsd: fix build on 7.0

NetBSD doesn't have _Thread_local and the detection seems to be bogus.
  • Loading branch information...
rzalamena committed Oct 14, 2018
1 parent 309e62c commit 179da47f2e8def1907372408a9df97a0dcbc1347
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/common.h.in
@@ -25,7 +25,9 @@

#define UNUSED(x) @COMPILER_UNUSED_ATTR@

#if __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__
#if __STDC_VERSION__ >= 201112 && \
!defined __STDC_NO_THREADS__ && \
!defined __NetBSD__
# define THREAD_LOCAL _Thread_local
#elif defined __GNUC__ || \
defined __SUNPRO_C || \

0 comments on commit 179da47

Please sign in to comment.