summaryrefslogtreecommitdiff
path: root/seq
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2001-03-01 17:38:07 +0000
committerTakashi Iwai <tiwai@suse.de>2001-03-01 17:38:07 +0000
commitb18b0da438c81e5bc31571a4a3dfb65f6f61edfd (patch)
tree5797ec609b49c4f85496fc0e3e457d494de044e6 /seq
parent946078f8c4cefcd99b20c155c0d38a1e23058395 (diff)
fixed compile on some gcc version..
Diffstat (limited to 'seq')
-rw-r--r--seq/aseqnet/aseqnet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/seq/aseqnet/aseqnet.c b/seq/aseqnet/aseqnet.c
index 77a885d..50e5c64 100644
--- a/seq/aseqnet/aseqnet.c
+++ b/seq/aseqnet/aseqnet.c
@@ -20,6 +20,7 @@
#include <ctype.h>
#include <string.h>
#include <netinet/in.h>
+#include <sys/socket.h>
#include <netdb.h>
#include <sys/asoundlib.h>
#include <getopt.h>
@@ -370,7 +371,7 @@ static void init_server(int port)
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &curstate, sizeof(curstate));
/* the return value is ignored.. */
- if (bind(sockfd, &addr, sizeof(addr)) < 0) {
+ if (bind(sockfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("can't bind");
exit(1);
}
@@ -439,7 +440,7 @@ static void init_client(char *server, int port)
addr.sin_port = htons(port);
addr.sin_family = AF_INET;
memcpy(&addr.sin_addr, host->h_addr, host->h_length);
- if (connect(fd, &addr, sizeof(addr)) < 0) {
+ if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("connect");
exit(1);
}