Commit Diff


commit - f7f5daf01e343ec26add1c2b599aa84f0de8b1c0
commit + cf7804ed4ec5343a161ead744ff9128ddbed183a
blob - e05050ac3116887d11669d86005100748e10b21a
blob + cb48560cb56cf7e85a74af30e704d3543f7bb2a1
--- lib/repository_admin.c
+++ lib/repository_admin.c
@@ -615,7 +615,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");