Richard E. Neese wrote:
I need help port chan_sccp to fbsd.
Now compiling .... chan_sccp.c               742 lines
In file included from chan_sccp.h:8,
                 from chan_sccp.c:2:
/usr/include/netinet/ip.h:67: error: field `ip_src' has incomplete type
/usr/include/netinet/ip.h:67: error: field `ip_dst' has incomplete type
/usr/include/netinet/ip.h:160: error: syntax error before "n_long"
/usr/include/netinet/ip.h:162: error: field `ipt_addr' has incomplete type
/usr/include/netinet/ip.h:163: error: syntax error before "n_long"
/usr/include/netinet/ip.h:198: error: field `ippseudo_src' has incomplete type
/usr/include/netinet/ip.h:199: error: field `ippseudo_dst' has incomplete type
chan_sccp.c: In function `restart_monitor':
chan_sccp.c:638: warning: comparison between pointer and integer
chan_sccp.c: In function `unload_module':
chan_sccp.c:720: warning: assignment makes pointer from integer without a cast
gmake: *** [.tmp/chan_sccp.o] Error 1

I have very small c skill. Here is the link to cvs for it.

http://sourceforge.net/cvs/?group_id=106208 I need this for a bunch of 7920.

Use this patch:

--- chan_sccp.h.orig    Sun May  1 15:43:47 2005
+++ chan_sccp.h Tue May 24 13:37:33 2005
@@ -5,7 +5,15 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
+
+#ifdef linux
 #include <netinet/ip.h>
+#endif /* linux */
+
+#ifdef __FreeBSD__
+#include <netinet/in.h>
+#endif /* FreeBSD */
+
 #include <netinet/tcp.h>
 #include <arpa/inet.h>
 #include <stdlib.h>

begin:vcard
fn:Andrew Kochetkoff
n:Kochetkoff;Andrew
org:Modern Communication System Co., Ltd.
adr:;;Zab. Rabochego 94;Chita;;672090;Russia
email;internet:[EMAIL PROTECTED]
x-mozilla-html:FALSE
url:http://www.mtelecom.chita.ru
version:2.1
end:vcard

_______________________________________________
Asterisk-BSD mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Reply via email to