Add Haiku OS support (#1970)

This commit is contained in:
hfsfox
2023-09-28 22:30:38 +03:00
committed by GitHub
parent fb420bb563
commit 0cf656cd76
6 changed files with 37 additions and 1 deletions

View File

@@ -27,6 +27,17 @@
# include <AvailabilityMacros.h>
#endif
#if defined(__HAIKU__)
#include <gnu/pthread.h>
#include <posix/pthread.h>
#include <posix/sys/sockio.h>
#include <posix/sys/ioctl.h>
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#include <bsd/ifaddrs.h>
#endif
#endif
#ifdef _WIN32
#include <stdlib.h>
#include <string.h>