www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000131

When Created: 01/21/1997 18:12:01
Against DJGPP version: 2.01
By whom: norm@cs.ubc.ca
Abstract: netinet/in.h multiple protection #ifdefs are incorrect
The preprocessor directives designed to prevent multiple inclusion of 
netinet/in.h are broken, and fail in their purpose in life.

The outcome is a warning (under -g) or fatal error (under -O) involving the
functions htonl and htons.
 

Solution added: 01/21/1997 18:13:30
By whom: norm@cs.ubc.ca
The name used in the ifndef and #define should be the same:

3c3
< #define __dj_include_in_h_
---
> #define __dj_include_netinet_in_h_
46c46
< #endif /* !__dj_include_in_h_ */
---
> #endif /* !__dj_include_netinet_in_h_ */

Fixed in version on 04/12/1999 12:00:59
By whom: eliz@is.elta.co.il



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010