diff --git a/src/pipe.c b/src/pipe.c index c7ce3c58d..c161f960f 100644 --- a/src/pipe.c +++ b/src/pipe.c @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -21,7 +22,9 @@ struct pool_head *pool2_pipe = NULL; struct pipe *pipes_live = NULL; /* pipes which are still ready to use */ +#ifdef USE_THREAD HA_SPINLOCK_T pipes_lock; /* lock used to protect pipes list */ +#endif int pipes_used = 0; /* # of pipes in use (2 fds each) */ int pipes_free = 0; /* # of pipes unused */