On OpenBSD, we have to add <netinet/in.h> to define sockaddr_in,

and <sys/socket.h> for AF_INET.

This change does not affect compiling on Linux.
pull/122/head
SASANO Takayoshi 7 years ago
parent 68cfe5bbe3
commit 6d85e1382b

@ -41,6 +41,8 @@
#include <fstream> #include <fstream>
#include <algorithm> #include <algorithm>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
// defines // defines

@ -41,6 +41,8 @@
#include <fstream> #include <fstream>
#include <algorithm> #include <algorithm>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
// defines // defines

@ -41,6 +41,8 @@
#include <fstream> #include <fstream>
#include <algorithm> #include <algorithm>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
// defines // defines

Loading…
Cancel
Save

Powered by TurnKey Linux.