util: require inet_pton()

Always use inet_pton() for converting IP addresses. It should be
available on all currently supported systems.
This commit is contained in:
Miroslav Lichvar
2021-03-02 17:28:02 +01:00
parent 579d8c9907
commit 7a02371698
2 changed files with 4 additions and 17 deletions

View File

@@ -28,6 +28,7 @@
#ifndef GOT_SYSINCL_H
#define GOT_SYSINCL_H
#include <arpa/inet.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
@@ -61,11 +62,6 @@
#include <sys/timex.h>
#endif
#ifdef FEAT_IPV6
/* For inet_ntop() */
#include <arpa/inet.h>
#endif
#ifdef HAVE_GETRANDOM
#include <sys/random.h>
#endif