Merge pull request #1327 from gameblabla/voidlinuxmusl
WIP: Fixes for Musl
This commit is contained in:
commit
d4f12fae64
|
@ -44,11 +44,13 @@ struct ifaddrs {
|
||||||
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
|
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#ifdef _cplusplus
|
||||||
|
extern "C" {
|
||||||
__BEGIN_DECLS
|
#endif
|
||||||
extern int getifaddrs(struct ifaddrs **ifap);
|
extern int getifaddrs(struct ifaddrs **ifap);
|
||||||
extern void freeifaddrs(struct ifaddrs *ifa);
|
extern void freeifaddrs(struct ifaddrs *ifa);
|
||||||
__END_DECLS
|
#ifdef _cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -203,7 +203,6 @@ typedef unsigned __int64 u_int64_t;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/cdefs.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
|
|
@ -99,8 +99,6 @@ static const unsigned int _K[] =
|
||||||
sha1_step(ctxt); \
|
sha1_step(ctxt); \
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sha1_step __P((struct sha1_ctxt *));
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sha1_step(struct sha1_ctxt *ctxt)
|
sha1_step(struct sha1_ctxt *ctxt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
#ifdef USE_OSS
|
#ifdef USE_OSS
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
#ifdef TARGET_BSD
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
|
||||||
#include <sys/unistd.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/soundcard.h>
|
#include <sys/soundcard.h>
|
||||||
|
|
||||||
static int oss_audio_fd = -1;
|
static int oss_audio_fd = -1;
|
||||||
|
|
Loading…
Reference in New Issue