1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/mbone/mcl/files/patch-mcl_lib.cpp
Pav Lucistnik c5093c3118 - Update to 2.99.1
Changes in software:
- vendor's bugfixes
- new FLUTE support
- new dependencies in gdome-2 and glib20
- properly install the shared library and headers
- replace -pthread with $PTHREAD_LIBS
- fix compilation warnings due to C++ headers in -current

PR:		ports/61068
Submitted by:	Panagiotis Astithas <past@noc.ntua.gr> (maintainer)
2004-01-09 00:12:51 +00:00

28 lines
864 B
C++

--- src/alc/mcl_lib.cpp.orig Wed Nov 26 15:38:14 2003
+++ src/alc/mcl_lib.cpp Tue Dec 16 23:58:46 2003
@@ -1384,8 +1384,10 @@
if (id >= MCLCB_MAX_ID || (mclcb = mclcbs[id]) == NULL) {
TRACE((mcl_stdout, " mcl_recvfrom: not an MCL id, switch to standard recvfrom\n"))
return (recvfrom(id, (char*)buf, len, 0, saddr,
-#ifdef LINUX
+#if defined(LINUX)
(size_t*) /* linux => uint, solaris => int */
+#elif defined(FREEBSD)
+ (socklen_t*)
#endif
saddr_len));
}
@@ -1520,8 +1522,11 @@
if (id >= MCLCB_MAX_ID || (mclcb = mclcbs[id]) == NULL) {
TRACE((mcl_stdout, " mcl_recvfrom: not an MCL id, switch to standard recvfrom\n"))
return (recvfrom(id, (char*)buf, len, 0, saddr,
-#ifdef LINUX
+#if defined(LINUX)
(size_t*) /* linux => uint, solaris => int */
+#elif defined(FREEBSD)
+ (socklen_t*)
+
#endif
saddr_len));
}