mirror of
https://github.com/linux-msm/diag.git
synced 2024-11-26 19:44:02 +08:00
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:
parent
9de0697ec5
commit
54375d90a4
@ -33,6 +33,7 @@
|
||||
#define __DIAG_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "circ_buf.h"
|
||||
#include "hdlc.h"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user