[Home]

Summary:ASTERISK-04882: [patch] Freebsd fix for streamplayer
Reporter:bsdtech (bsdtech)Labels:
Date Opened:2005-08-23 11:14:34Date Closed:2005-08-23 11:33:07
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:here is the neded lines to patch streamplayer.c to compile and work on Freebsd.

****** ADDITIONAL INFORMATION ******

#ifdef linux
#include <netinet/ip.h>
#include <netinet/tcp.h>
#endif /* linux */

#ifdef __FreeBSD__
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#endif /* FreeBSD */
Comments:By: Clod Patry (junky) 2005-08-23 11:17:58

Why not submit it to ASTERISK-4783 instead of creating a new ticket ?

By: Michael Jerris (mikej) 2005-08-23 11:19:11

don't we have a header file with those includes properly ifdefed in them

By: Kevin P. Fleming (kpfleming) 2005-08-23 11:23:19

Why is all of this changing needed? Can't we just include netinet/udp.h only on FreeBSD and be done with it? With the patch as proposed, this won't build on anything that is not Linux or FreeBSD.

By: Michael Jerris (mikej) 2005-08-23 11:23:23

is there a more general way we can fix this than just for freebsd specifically in a header file.

By: Kevin P. Fleming (kpfleming) 2005-08-23 11:30:19

No, since this file is not part of Asterisk itself it cannot use any of those headers.