HAVE_THREADSAFE_LIBRRD is either defined or not
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 13:22:52 +0000 (15:22 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 13:22:52 +0000 (15:22 +0200)
src/utils_rrdcreate.c

index 2012b84..6da5167 100644 (file)
@@ -70,7 +70,7 @@ static const char *const rra_types[] =
 };
 static int rra_types_num = STATIC_ARRAY_SIZE (rra_types);
 
-#if !defined(HAVE_THREADSAFE_LIBRRD) || !HAVE_THREADSAFE_LIBRRD
+#if !defined(HAVE_THREADSAFE_LIBRRD)
 static pthread_mutex_t librrd_lock = PTHREAD_MUTEX_INITIALIZER;
 #endif