Commit Diff


commit - 294fdcae50063512dd68a933836696c9eb0ea0ff
commit + f528b33ecc8d05209f34af6472acdbc70f51d285
blob - 31425fb8310125b7f7fe7389432f6a005df42136
blob + b3f6f17b931df0ad083fed1158a332673f844866
--- lib/repository_admin.c
+++ lib/repository_admin.c
@@ -618,7 +618,7 @@ got_repo_cleanup_prepare(struct got_repository *repo,
     struct got_lockfile **lk)
 {
 	const struct got_error *err;
-	char myname[HOST_NAME_MAX + 1];
+	char myname[_POSIX_HOST_NAME_MAX + 1];
 
 	if (gethostname(myname, sizeof(myname)) == -1)
 		return got_error_from_errno("gethostname");