Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

critical impact:

inet_* APIs - additional header files needed (CrCh121)

NW Impacts

Problem description

The identified Application Programming Interfaces (APIs) on HP-UX require additional header files.

On Tru64 UNIX, you needed to include the <arpa/inet.h> header file in order to use these APIs. On HP-UX, you also need the <sys/socket> and <netinet/in.h> header files.


C/C++ Functionsinet_addr C/C++ Functionsinet_makeaddr C/C++ Functionsinet_network
C/C++ Functionsinet_lnaof C/C++ Functionsinet_netof C/C++ Functionsinet_ntoa

See also

Solution description

Review the applicable manpages and code.

In order to correctly use these APIs, add the following lines to your code:

#include <sys/socket>
#include <netinet/in.h>

See also

Problem summary

classifications source types OS release severity type
NW C, C++ any HP-UX 11i version critical changed
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.