freebsd-ports/audio/sphinx/files/patch-src-examples_clicore.c
Martin Wilke 72e8535d7a - Fix build with gcc 4.2
PR:		118467
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (erwin)
2007-12-10 22:29:47 +00:00

11 lines
432 B
C

--- src/examples/clicore.c.orig 2007-12-06 18:36:24.000000000 +0100
+++ src/examples/clicore.c 2007-12-06 18:36:39.000000000 +0100
@@ -323,7 +323,7 @@
memcpy (&addr.sin_addr, hp->h_addr, hp->h_length);
addr.sin_port = htons((u_short) port);
- if (connect (conn_sd, &addr, sizeof(addr)) == 0)
+ if (connect (conn_sd, (struct sockaddr *)&addr, sizeof(addr)) == 0)
break;
print_errno ("connect");
cli_close (conn_sd);