aboutsummaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-23 09:12:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-23 09:12:54 +0000
commita6b66b73b10d5bbac68bdbdcc230653132e67b17 (patch)
treed09cb9fd5ac02ed02965c41e87296bc152f4da29 /uri.c
parentthemes: fix typos in themes/selenized-black (diff)
parentchangelog: freebsd support (diff)
Merge branch 'freebsd'
Closes #238
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uri.c b/uri.c
index 21eba6fb..51cd8093 100644
--- a/uri.c
+++ b/uri.c
@@ -266,7 +266,7 @@ err:
bool
hostname_is_localhost(const char *hostname)
{
- char this_host[HOST_NAME_MAX];
+ char this_host[_POSIX_HOST_NAME_MAX];
if (gethostname(this_host, sizeof(this_host)) < 0)
this_host[0] = '\0';