From 57e14f727a826e19a425a3a7ff2a1efc78355fa9 Mon Sep 17 00:00:00 2001
From: Thierry Fournier <thierry.fournier@ozon.io>
Date: Mon, 21 May 2018 19:42:53 +0200
Subject: [PATCH 2/2] BUG/MINOR: thread/build: The variable all_threads_mask is
 not defined

The include "proto/fd.h" use the variable all_threads_mask whoch is not
defined when we compile without threads.

This patch define this variable as macro.
---
 include/common/hathreads.h | 1 +
 include/proto/fd.h         | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/common/hathreads.h b/include/common/hathreads.h
index e27ecc6..38a0f8a 100644
--- a/include/common/hathreads.h
+++ b/include/common/hathreads.h
@@ -30,6 +30,7 @@ extern THREAD_LOCAL unsigned long tid_bit; /* The bit corresponding to the threa
 
 #ifndef USE_THREAD
 
+#define all_threads_mask (ULONG_MAX)
 #define MAX_THREADS 1
 
 #define __decl_hathreads(decl)
diff --git a/include/proto/fd.h b/include/proto/fd.h
index c5a03f7..39b199a 100644
--- a/include/proto/fd.h
+++ b/include/proto/fd.h
@@ -28,6 +28,7 @@
 #include <unistd.h>
 
 #include <common/config.h>
+#include <common/hathreads.h>
 
 #include <types/fd.h>
 
-- 
2.10.1

