<netinet/in.h> of Linux automatically includes <sys/socket.h>,

but OpenBSD's not. So added it.
This commit is contained in:
SASANO Takayoshi 2019-03-13 20:18:12 +09:00
parent c47d783d2d
commit 9d3a58c103
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <sys/types.h>
#if !defined(_WIN32) && !defined(_WIN64)
#include <ifaddrs.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>