summaryrefslogtreecommitdiff
path: root/source/l/alsa-oss
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/alsa-oss')
-rwxr-xr-xsource/l/alsa-oss/alsa-oss.SlackBuild4
-rw-r--r--source/l/alsa-oss/alsa-oss.glibc228.diff10
2 files changed, 13 insertions, 1 deletions
diff --git a/source/l/alsa-oss/alsa-oss.SlackBuild b/source/l/alsa-oss/alsa-oss.SlackBuild
index 5f938fd0..d7cd0292 100755
--- a/source/l/alsa-oss/alsa-oss.SlackBuild
+++ b/source/l/alsa-oss/alsa-oss.SlackBuild
@@ -44,7 +44,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-NUMJOBS=${NUMJOBS:-" -j7 "}
+NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
TMP=${TMP:-/tmp}
PKG=$TMP/package-alsa-oss
@@ -76,6 +76,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+zcat $CWD/alsa-oss.glibc228.diff.gz | patch -p1 --verbose || exit 1
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
diff --git a/source/l/alsa-oss/alsa-oss.glibc228.diff b/source/l/alsa-oss/alsa-oss.glibc228.diff
new file mode 100644
index 00000000..d44b3806
--- /dev/null
+++ b/source/l/alsa-oss/alsa-oss.glibc228.diff
@@ -0,0 +1,10 @@
+--- ./alsa/stdioemu.c.orig 2018-04-03 02:01:38.000000000 -0500
++++ ./alsa/stdioemu.c 2018-09-18 18:42:01.227057630 -0500
+@@ -37,7 +37,6 @@
+ #endif
+
+ #include <stdio.h>
+-#include <libio.h>
+
+ struct fd_cookie {
+ int fd;