aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ftutil.h
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2017-01-01 21:52:49 +0100
committerMarius Halden <marius.h@lden.org>2017-01-01 21:52:49 +0100
commitefaa514039a4b907e2c5c6309295c66b27b1f691 (patch)
tree55f4962e14be3df95c4168d06a8d1b95ccfb8298 /lib/ftutil.h
parentd35affbcea87f453fb20c4bb545a10b668eae81b (diff)
parent2e8523b30bafa86685655001457a2615936b646a (diff)
Merge branch 'master' into patched-master
Diffstat (limited to 'lib/ftutil.h')
-rw-r--r--lib/ftutil.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/ftutil.h b/lib/ftutil.h
index d8317b2f..054d6534 100644
--- a/lib/ftutil.h
+++ b/lib/ftutil.h
@@ -25,17 +25,7 @@
#define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */
#endif
-/* Some ifdefs for ulibc and apparently also BSD (Thanks to Whoopie) */
-#ifndef HOST_NAME_MAX
-#include <sys/param.h>
-#ifdef MAXHOSTNAMELEN
-#define HOST_NAME_MAX MAXHOSTNAMELEN
-#else
-#define HOST_NAME_MAX 255
-#endif
-#endif
-
/* This function should be used with care. host should be AT LEAST a
- char[HOST_NAME_MAX+1] and port AT LEAST a char[6]. */
+ char[NI_MAXHOST+1] and port AT LEAST a char[6]. */
int ft_listen(struct sockaddr_storage *saddr_ptr, char *host, char *port, int copy_fd, int for_bitlbee_client,
char **errptr);