There are two places where gai_strerror() is called but neither
of them includes all necessary header files as documented in its
manpage. Fortunately, both calls occur in ERROR() macro which by
default does nothing - hence we don't see any compilation errors.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
#include <errno.h>
#include <string.h>
#include <time.h>
+#include <sys/socket.h>
+#include <netdb.h>
#if defined(WITH_BSD_NSS)
#include <stdlib.h>
#include <stdbool.h>
#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
#include <json.h>