Merge pull request #4951 from waddlesplash/haiku-2

Initial support for Haiku.
This commit is contained in:
Matthew Parlane 2017-03-28 17:19:35 +13:00 committed by GitHub
commit 85d74a506f
17 changed files with 236 additions and 15 deletions

View file

@ -21,7 +21,10 @@
#if !defined(_WIN32)
#include <sys/socket.h>
#include <sys/types.h>
#ifndef ANDROID
#ifdef __HAIKU__
#define _BSD_SOURCE
#include <bsd/ifaddrs.h>
#elif !defined ANDROID
#include <ifaddrs.h>
#endif
#include <arpa/inet.h>