Fix building with musl libc

POSIX says poll.h and signal.h should not be prefixed with sys/ (ie
poll.h instead of sys/poll.h)

limits.h also defines a TZNAME_MAX so we change name of the define for
spandsp.
This commit is contained in:
Natanael Copa 2014-05-01 14:12:12 +00:00 committed by Michael Jerris
parent 13b411529f
commit 317f4b1442
6 changed files with 8 additions and 8 deletions

View File

@ -194,7 +194,7 @@ typedef enum {
#include <sys/types.h>
#include <sys/select.h>
#include <netinet/tcp.h>
#include <sys/signal.h>
#include <signal.h>
#include <unistd.h>
#include <ctype.h>
#endif

View File

@ -116,7 +116,7 @@ typedef int scgi_filehandle_t;
#include <sys/types.h>
#include <sys/select.h>
#include <netinet/tcp.h>
#include <sys/signal.h>
#include <signal.h>
#include <unistd.h>
#include <ctype.h>
#endif

View File

@ -58,7 +58,7 @@
#endif
#if SU_HAVE_POLL
#include <sys/poll.h>
#include <poll.h>
#endif
SOFIA_BEGIN_DECLS

View File

@ -47,7 +47,7 @@
#endif
#if SU_HAVE_POLL
#include <sys/poll.h>
#include <poll.h>
#endif
SOFIA_BEGIN_DECLS

View File

@ -30,7 +30,7 @@
#define TZ_MAX_LEAPS 50 /* Maximum number of leap second corrections */
#define TZNAME_MAX 255
#define SPANDSP_TZNAME_MAX 255
/* The TZ_MAX_TIMES value below is enough to handle a bit more than a
* year's worth of solar time (corrected daily to the nearest second) or
@ -74,14 +74,14 @@ struct tz_state_s
time_t ats[TZ_MAX_TIMES];
uint8_t types[TZ_MAX_TIMES];
struct tz_ttinfo_s ttis[TZ_MAX_TYPES];
char chars[TZ_BIGGEST(TZ_MAX_CHARS + 1, (2*(TZNAME_MAX + 1)))];
char chars[TZ_BIGGEST(TZ_MAX_CHARS + 1, (2*(SPANDSP_TZNAME_MAX + 1)))];
struct tz_lsinfo_s lsis[TZ_MAX_LEAPS];
};
struct tz_s
{
struct tz_state_s state;
char lcl_tzname[TZNAME_MAX + 1];
char lcl_tzname[SPANDSP_TZNAME_MAX + 1];
int lcl_is_set;
const char *tzname[2];
};

View File

@ -89,7 +89,7 @@
(uint64_t)bswap_32((uint32_t)((value) >> 32)))
#endif
#include <sys/time.h>
#include <sys/signal.h>
#include <signal.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>