FS#21159 - [glibc] Typo in /usr/include/netinet/ip.h

Attached to Project: Arch Linux
Opened by Chris Brannon (cmb) - Saturday, 09 October 2010, 14:53 GMT
Last edited by Allan McRae (Allan) - Monday, 25 October 2010, 07:26 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Whilst trying to build a package from the AUR, gcc choked on the
following definition from /usr/include/netinet/ip.h:
#define IPTOS_CLASS(class) ((tos) & IPTOS_CLASS_MASK)
The programmer actually meant to write:
#define IPTOS_CLASS(class) ((class) & IPTOS_CLASS_MASK)

I made a patch, and I updated the PKGBUILD accordingly. See attached.

Steps to reproduce:
Try to compile the sample C program attached to this report.
   sample.c (0.2 KiB)
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 25 October 2010, 07:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  glibc-2.12.1-3
Comment by Chris Brannon (cmb) - Saturday, 09 October 2010, 14:55 GMT
Heree is the tarball containing the patch and PKGBUILD.
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 09 October 2010, 15:21 GMT
http://sourceware.org/ml/glibc-cvs/2010-q3/msg00053.html [GNU C Library master sources branch, master, updated. glibc-2.12-93-g15bac72]

Loading...