* Applied a patch from Igor Khavkine <i_khavki@alcor.concordia.ca> to

make the package build on the Hurd. Closes: #98562


git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5150 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2001-05-24 03:22:47 +00:00
parent 7ce310d047
commit 831647efe0
5 changed files with 110 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $ */
/* $NetBSD: get_names.c,v 1.4 2000/07/03 03:57:41 matt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $");
__RCSID("$NetBSD: get_names.c,v 1.4 2000/07/03 03:57:41 matt Exp $");
#endif /* not lint */
#include "bsd.h"
@@ -17,6 +17,7 @@ __RCSID("$NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $");
# include <sys/param.h>
# include <netdb.h>
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <unistd.h>
# include "hunt.h"
@@ -24,6 +25,9 @@ __RCSID("$NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $");
extern CTL_MSG msg;
/* according to SUSv2, hostnames can't be longer then 256 characters */
#define MAXHOSTNAMELEN 256
static char hostname[MAXHOSTNAMELEN + 1];
char *my_machine_name;