Skip to content

libvoice: Add missing include

Lukasz Kotasa requested to merge lk-missing-include into devel

fixes error when compiling with broadcom compiler

common.c:114:10: error: implicit declaration of function 'calloc' [-Werror=implicit-function-declaration]
  114 |  lines = calloc(terminal_info.num_voice_ports, sizeof(struct line_t));
      |          ^~~~~~
common.c:114:10: error: incompatible implicit declaration of built-in function 'calloc' [-Werror]
common.c:10:1: note: include '<stdlib.h>' or provide a declaration of 'calloc'
    9 | #include "libvoice-priv.h"
  +++ |+#include <stdlib.h>

Merge request reports