freebsd-ports/audio/sphinx/files/patch-src-examples_srvcore.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
494 B
C

--- src/examples/srvcore.c.orig 2007-12-06 18:35:25.000000000 +0100
+++ src/examples/srvcore.c 2007-12-06 18:35:56.000000000 +0100
@@ -381,7 +381,7 @@
ERRLOG((stderr, "%s(%d): Listening at port %d\n", __FILE__, __LINE__, bindport));
- if ((conn_sd = accept (listen_sd, &address, &address_len)) == INVALID_SOCKET) {
+ if ((conn_sd = accept (listen_sd, (struct sockaddr *)&address, &address_len)) == INVALID_SOCKET) {
print_errno ("conn_accept");
return INVALID_SOCKET;
}