mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-01 18:42:09 +02:00
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
--- a/3rdparty/iaxclient/lib/libiax2/src/iax.c 2015-02-18 21:10:05.000000000 +0100
|
|
+++ b/3rdparty/iaxclient/lib/libiax2/src/iax.c 2015-10-31 17:14:55.477461723 +0100
|
|
@@ -75,7 +75,7 @@
|
|
// FlightGear: Modified to include FreeBSD
|
|
#if !defined(MACOSX) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
|
|
#include <malloc.h>
|
|
-#if !defined(SOLARIS)
|
|
+#if !defined(SOLARIS) && defined(__GLIBC__)
|
|
#include <error.h>
|
|
#endif
|
|
#endif
|
|
|
|
--- a/src/Main/bootstrap.cxx 2015-02-18 21:10:05.000000000 +0100
|
|
+++ b/src/Main/bootstrap.cxx 2015-11-01 01:25:56.665212195 +0100
|
|
@@ -96,8 +96,12 @@
|
|
initFPE (bool fpeAbort)
|
|
{
|
|
+#if defined(__GLIBC__)
|
|
if (fpeAbort) {
|
|
int except = fegetexcept();
|
|
feenableexcept(except | FE_DIVBYZERO | FE_INVALID);
|
|
} else {
|
|
signal(SIGFPE, handleFPE);
|
|
}
|
|
+#else
|
|
+ signal(SIGFPE, handleFPE);
|
|
+#endif
|
|
|
|
--- a/3rdparty/hts_engine_API/lib/HTS_misc.c 2015-02-18 21:10:05.000000000 +0100
|
|
+++ b/3rdparty/hts_engine_API/lib/HTS_misc.c 2015-10-31 17:33:53.946349145 +0100
|
|
@@ -247,8 +247,10 @@
|
|
fgetpos((FILE *) fp->pointer, &pos);
|
|
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__ANDROID__) || defined(__FreeBSD__)
|
|
return (size_t) pos;
|
|
-#else
|
|
+#elif defined(__GLIBC__)
|
|
return (size_t) pos.__pos;
|
|
+#else
|
|
+ return (size_t) ftell(fp->pointer);
|
|
#endif /* _WIN32 || __CYGWIN__ || __APPLE__ || __ANDROID__ */
|
|
}
|
|
HTS_error(0, "HTS_ftell: Unknown file type.\n");
|