Fix build with musl

Include needed headers to fix following errors

| router/dm.h:41:1: error: unknown type name 'ssize_t'; did you mean 'size_t'?
|  ssize_t dm_send(struct diag_client *dm, const void *ptr, size_t len);
|  ^~~~~~~

tools/send_data.c:55:9: error: variable 'tv' has initializer but
incomplete type
  struct timeval tv = {5, 0};
         ^~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2018-09-23 00:17:06 -07:00 committed by Bjorn Andersson
parent 9de0697ec5
commit 54375d90a4
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#define __DIAG_H__
#include <stdint.h>
#include <sys/types.h>
#include "circ_buf.h"
#include "hdlc.h"

View File

@ -33,6 +33,7 @@
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <err.h>
#include <errno.h>