* modules/netdb-tests (Depends-on): Add assert-h.
* tests/test-netdb.c: Check that NI_MAXHOST and NI_MAXSERV are defined
correctly.
2024-06-27 Collin Funk <collin.funk1@gmail.com>
+ netdb tests: Check for NI_MAXHOST and NI_MAXSERV.
+ * modules/netdb-tests (Depends-on): Add assert-h.
+ * tests/test-netdb.c: Check that NI_MAXHOST and NI_MAXSERV are defined
+ correctly.
+
netdb: Define NI_MAXHOST and NI_MAXSERV.
* doc/posix-headers/netdb.texi (netdb.h): Document definitions that
differ from RFC 2553.
Depends-on:
netdb-c++-tests
+assert-h
configure.ac:
/* Written by Simon Josefsson <simon@josefsson.org>, 2008. */
#include <config.h>
+
#include <netdb.h>
+static_assert (NI_MAXHOST == 1025);
+static_assert (NI_MAXSERV == 32);
+
/* Check that the 'struct hostent' type is defined. */
struct hostent t1;