summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/daudio/files/daudio-0.3-musl-stdint.patch')
-rw-r--r--media-sound/daudio/files/daudio-0.3-musl-stdint.patch82
1 files changed, 82 insertions, 0 deletions
diff --git a/media-sound/daudio/files/daudio-0.3-musl-stdint.patch b/media-sound/daudio/files/daudio-0.3-musl-stdint.patch
new file mode 100644
index 000000000000..ff70b900d1f8
--- /dev/null
+++ b/media-sound/daudio/files/daudio-0.3-musl-stdint.patch
@@ -0,0 +1,82 @@
+https://bugs.gentoo.org/715246
+--- a/client/net.c
++++ b/client/net.c
+@@ -20,6 +20,7 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <stdio.h>
++#include <stdint.h>
+ #include <errno.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+@@ -69,7 +70,7 @@ int netinit(char *hostname, int port) {
+ }
+ net_raddr.sin_family = AF_INET;
+ net_raddr.sin_port = htons(port);
+- net_raddr.sin_addr.s_addr = *((u_int32_t *) host->h_addr);
++ net_raddr.sin_addr.s_addr = *((uint32_t *) host->h_addr);
+ return(s);
+ }
+
+--- a/server/bcast.c
++++ b/server/bcast.c
+@@ -21,6 +21,7 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <stdio.h>
++#include <stdint.h>
+
+ #include "../common/port.h"
+ #include "timer.h"
+@@ -75,11 +76,11 @@ int b_init(void) {
+
+ addr.sin_family = AF_INET;
+ addr.sin_port = htons(BROADCASTPORT_D);
+- addr.sin_addr.s_addr = (u_int32_t) INADDR_ANY;
++ addr.sin_addr.s_addr = (uint32_t) INADDR_ANY;
+
+ baddr.sin_family = AF_INET;
+ baddr.sin_port = htons(BROADCASTPORT_C);
+- baddr.sin_addr.s_addr = (u_int32_t) INADDR_BROADCAST;
++ baddr.sin_addr.s_addr = (uint32_t) INADDR_BROADCAST;
+
+ if(bind(b_sock, (struct sockaddr *) &addr, sizeof(struct sockaddr_in)) == -1)
+ return(-1);
+--- a/server/local.c
++++ b/server/local.c
+@@ -21,6 +21,7 @@
+ #include <unistd.h>
+ #include <mad.h>
+ #include <stdio.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <errno.h>
+ #include <fcntl.h>
+@@ -207,7 +208,7 @@ int l_init(void) {
+
+ addr.sin_family = AF_INET;
+ addr.sin_port = htons(LISTENPORT);
+- addr.sin_addr.s_addr = (u_int32_t) INADDR_ANY;
++ addr.sin_addr.s_addr = (uint32_t) INADDR_ANY;
+
+ if(bind(*s, (struct sockaddr *) &addr, sizeof(struct sockaddr_in)) == -1)
+ return(-1);
+--- a/streamer/streamer.c
++++ b/streamer/streamer.c
+@@ -25,6 +25,7 @@
+ #include <sys/socket.h>
+ #include <unistd.h>
+ #include <stdio.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -129,7 +130,7 @@ int main(int argc, char *argv[]) {
+ }
+ addr.sin_family = AF_INET;
+ addr.sin_port = htons(LISTENPORT);
+- addr.sin_addr.s_addr = (u_int32_t) htonl(INADDR_LOOPBACK);
++ addr.sin_addr.s_addr = (uint32_t) htonl(INADDR_LOOPBACK);
+
+ if(connect(s, (struct sockaddr *) &addr, sizeof(struct sockaddr_in)) == -1) {
+ perror("Failed to connect to localhost:5555");