]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix building with musl libc
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 1 May 2014 14:12:12 +0000 (14:12 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 2 May 2014 15:20:36 +0000 (11:20 -0400)
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.

libs/esl/src/include/esl.h
libs/libscgi/src/include/scgi.h
libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_os_nw.h
libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_wait.h
libs/spandsp/src/spandsp/private/timezone.h
src/mod/applications/mod_spandsp/mod_spandsp_modem.h

index 32ec2bdeb89bcf5a4d52aae31c029e2fb950aee1..d48ae5f4962c8784e067ce4892059364fa6eb332 100644 (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
index cc6b3c0cf6ce365bd904f5da9156b3c51fa496ee..332a0716db32e1a5c70ebc60c4318a32657ca9ce 100644 (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
index ed6cf386c0a2e5ef6a72ba8abd730d80017edfae..75b73b0d1b03c4c2b6571379b3f6c8b4044061ed 100644 (file)
@@ -58,7 +58,7 @@
 #endif
 
 #if SU_HAVE_POLL
-#include <sys/poll.h>
+#include <poll.h>
 #endif
 
 SOFIA_BEGIN_DECLS
index ad67723bb46ff979f2ff89734fa3ff17bf94da25..7beaae61b9ec4a4ea0a292a55746c5651b30975c 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 
 #if SU_HAVE_POLL
-#include <sys/poll.h>
+#include <poll.h>
 #endif
 
 SOFIA_BEGIN_DECLS
index 87c67978a7d8312f26b8daed180f00e787d86b1a..b2397cf2d259841f94e65485ac520e955f0152e4 100644 (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];
 };
index 8d41cd2daa8db5a9cf3a4235aeffe32778a00b92..02dc0743255b98036428c2e1b4753e5d86d424df 100644 (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>