Files
mtkports/dev-vcs/git/compat/arpa/inet.h
T
2026-08-09 10:47:07 +02:00

19 lines
568 B
C

/*
* <arpa/inet.h> for the MontaukOS git port.
*
* inet_ntop/inet_pton are not declared here: the port builds with
* NO_INET_NTOP=1 / NO_INET_PTON=1, so git compiles its own portable versions
* (compat/inet_ntop.c, compat/inet_pton.c) and declares them itself in
* git-compat-util.h. Everything else an address needs comes from
* <netinet/in.h>.
*/
#ifndef _MONTAUK_GIT_ARPA_INET_H_
#define _MONTAUK_GIT_ARPA_INET_H_
#include <netinet/in.h>
in_addr_t inet_addr(const char *cp);
char *inet_ntoa(struct in_addr in);
#endif /* _MONTAUK_GIT_ARPA_INET_H_ */