[Home]

Summary:ASTERISK-04027: [patch] FreeBSD compile problem due to wrong header files
Reporter:Luigi Rizzo (rizzo)Labels:
Date Opened:2005-05-02 02:47:21Date Closed:2008-01-15 15:33:11.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 4125.patch.txt
Description:HEAD-20050501 version fails to compile on FreeBSD 4.11 due to
header files problems. The two files with problems are
acl.c (missing #include <netinet/in.h> before #include <arpa/inet.h>) and channels/chan_zap.c (stdint.h is not
available on FreeBSD as well as solaris).Trivial patches follow below.

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

diff -ubwr ../../work_orig/asterisk-current/acl.c ./acl.c
--- ../../work_orig/asterisk-current/acl.c      Fri Apr 22 15:11:34 2005
+++ ./acl.c     Sat Apr 30 00:39:26 2005
@@ -18,6 +18,7 @@
#include <signal.h>
#include <errno.h>
#include <unistd.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
diff -ubwr ../../work_orig/asterisk-current/channels/chan_zap.c ./channels/chan_zap.c
--- ../../work_orig/asterisk-current/channels/chan_zap.c        Thu Apr 28 01:44:24 2005
+++ ./channels/chan_zap.c       Sat Apr 30 00:48:14 2005
@@ -42,7 +42,7 @@
#include <sys/signal.h>
#include <errno.h>
#include <stdlib.h>
-#ifndef SOLARIS
+#if !defined(SOLARIS) && !defined(__FreeBSD__)
#include <stdint.h>
#endif
#include <unistd.h>

Comments:By: Clod Patry (junky) 2005-05-02 06:24:25

Please attach patch not past here.
Thanks.

By: Jeffrey C. Ollie (jcollie) 2005-05-02 08:57:00

+1 from me

By: Kevin P. Fleming (kpfleming) 2005-05-04 00:28:27

Committed to CVS HEAD, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:33:11.000-0600

Repository: asterisk
Revision: 5569

U   trunk/acl.c
U   trunk/channels/chan_zap.c

------------------------------------------------------------------------
r5569 | kpfleming | 2008-01-15 15:33:10 -0600 (Tue, 15 Jan 2008) | 2 lines

fix build on FreeBSD (bug ASTERISK-4027)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5569