[Home]

Summary:ASTERISK-04827: [patch] acl.c IPTOS_MIN
Reporter:mxhess (mxhess)Labels:
Date Opened:2005-08-12 16:03:25Date Closed:2008-01-15 15:44:24.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) acl.c.diff.txt
Description:compile errors out with:
acl.c: In function `ast_str2tos':
acl.c:244: `IPTOS_MINCOST' undeclared (first use in this function)
acl.c:244: (Each undeclared identifier is reported only once
acl.c:244: for each function it appears in.)
gmake: *** [acl.o] Error 1


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

IPTOS_LOWCOST is commented out in /usr/include/netinet/ip.h on openbsd 3.6 which then of course means that IPTOS_MINCOST won't be defined. But I do notice that there is a 0x02 define for IPTOS_ECT instead.


Attached is cvs diff acl.c output.
A simple thing that at least gets it to compile again.


Comments:By: Clod Patry (junky) 2005-08-12 21:36:46

Next time, please attach a -u (unified) patch.
Thanks.

By: Mark Spencer (markster) 2005-08-13 23:13:03

Fixed in CVS head, thanks.

By: Digium Subversion (svnbot) 2008-01-15 15:44:24.000-0600

Repository: asterisk
Revision: 6330

U   trunk/acl.c

------------------------------------------------------------------------
r6330 | markster | 2008-01-15 15:44:23 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix build on OpenBSD (bug ASTERISK-4827)

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

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