csound: fix i686* and *-musl builds

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-05-13 10:50:09 +02:00
parent 89f069c004
commit ae123c6f7e
No known key found for this signature in database
GPG key ID: 6764EC32352D0647
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- OOps/ugrw1.c 2018-05-10 10:31:20.000000000 +0200
+++ OOps/ugrw1.c 2018-05-13 10:40:15.438512047 +0200
@@ -1057,7 +1057,7 @@
*/
static int32_t sprints(char *outstring, char *fmt, MYFLT **kvals, int32_t numVals)
{
- char tmp[8],cc;
+ char tmp[10],cc;
int32_t j = 0;
int32_t len = 8192;
while (*fmt) {

View file

@ -9,3 +9,14 @@
#include <execinfo.h>
{
--- Opcodes/linuxjoystick.c 2018-05-10 10:31:20.000000000 +0200
+++ Opcodes/linuxjoystick.c 2018-05-13 10:47:51.360535568 +0200
@@ -36,7 +36,7 @@
*/
#include "linuxjoystick.h"
-#include <sys/errno.h>
+#include <errno.h>
static int32_t linuxjoystick (CSOUND *csound, LINUXJOYSTICK *stick)
{

View file

@ -0,0 +1,10 @@
--- Top/threadsafe.c 2018-05-10 10:31:20.000000000 +0200
+++ Top/threadsafe.c 2018-05-13 10:45:03.246526895 +0200
@@ -551,6 +551,7 @@
csoundSpinLock(lock);
*pval = val;
csoundSpinUnLock(lock);
+ (void)x;
}
#endif
}