Fixes for Musl

This commit is contained in:
gameblabla 2018-08-20 01:59:17 +02:00
parent 223cd74824
commit 55645a6fb7
No known key found for this signature in database
GPG Key ID: B24EFBB23B5F76CB
4 changed files with 6 additions and 11 deletions

View File

@ -44,11 +44,13 @@ struct ifaddrs {
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
#endif
#include <sys/cdefs.h>
__BEGIN_DECLS
#ifdef _cplusplus
extern "C" {
#endif
extern int getifaddrs(struct ifaddrs **ifap);
extern void freeifaddrs(struct ifaddrs *ifa);
__END_DECLS
#ifdef _cplusplus
}
#endif
#endif

View File

@ -203,7 +203,6 @@ typedef unsigned __int64 u_int64_t;
#else
#include <sys/stat.h>
#include <sys/cdefs.h>
#include <sys/time.h>
#if defined(__APPLE__)

View File

@ -99,8 +99,6 @@ static const unsigned int _K[] =
sha1_step(ctxt); \
}
static void sha1_step __P((struct sha1_ctxt *));
static void
sha1_step(struct sha1_ctxt *ctxt)
{

View File

@ -2,11 +2,7 @@
#ifdef USE_OSS
#include <sys/ioctl.h>
#include <sys/fcntl.h>
#ifdef TARGET_BSD
#include <unistd.h>
#else
#include <sys/unistd.h>
#endif
#include <sys/soundcard.h>
static int oss_audio_fd = -1;