Annoy_Leot found this. I had to change it. It is HOST_NAME_MAX. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 37d8397b8e850f2ba35ae8d4a109360da294732f DIR parent 904c8907275f13139e91bf1c3179f745d69f7fac HTML Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 12 Nov 2018 22:42:00 +0100 Annoy_Leot found this. I had to change it. It is HOST_NAME_MAX. Diffstat: M main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/main.c b/main.c @@ -480,7 +480,7 @@ main(int argc, char *argv[]) usage(); if (ohost == NULL) { - /* Do not use MAX_NAME_HOST, it is not defined on NetBSD. */ + /* Do not use HOST_NAME_MAX, it is not defined on NetBSD. */ ohost = xcalloc(1, 256+1); if (gethostname(ohost, 256) < 0) { perror("gethostname");