ipa_submi: Include missing header file for inet related functions
CC srvloc.o
In file included from srvloc.c:24:
/usr/include/resolv.h:157: error: array type has incomplete element type
/usr/include/resolv.h:171: error: field 'addr' has incomplete type
/usr/include/resolv.h:195: error: field 'sin' has incomplete type
srvloc.c: In function 'cm_srvloc_resolve':
srvloc.c:220: warning: implicit declaration of function 'ntohs'
The man 3 byteorder says that "arpa/inet.h" shoudl be included for ntohs.
But there is also a note related to POSIX
CONFORMING TO
POSIX.1-2001, POSIX.1-2008.
Some systems require the inclusion of <netinet/in.h> instead of <arpa/inet.h>.
The same manual page on FreeBSD says that either arpa/inet.h or netinet/in.h
need to be included.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>