summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread_pthread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 0a4208adb8..5726e3ba93 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1022,7 +1022,11 @@ static void
consume_communication_pipe(void)
{
const size_t buff_size = 1024;
+#ifdef __FreeBSD__
+ char buff[buff_size];
+#else
char buff[1024];
+#endif
ssize_t result;
retry:
result = read(timer_thread_pipe[0], buff, buff_size);