Add missing includes for FreeBSD.
src/tcp.c:38: error: 'AF_INET' undeclared here (not in a function) src/tcp.c:99: error: 'SOCK_STREAM' undeclared (first use in this function) src/tcp.c:121: error: 'AF_INET6' undeclared (first use in this function) src/tcp.c:159: error: 'SOL_SOCKET' undeclared (first use in this function) src/tcp.c:159: error: 'SO_ERROR' undeclared (first use in this function)
This commit is contained in:
parent
7082d8da77
commit
0afd2ae15f
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
|||
|
||||
#include <pthread.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <poll.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue