X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxgethostname.c;h=4db3bbd16a41f540a06a13a47c7e531c62dd45a7;hb=03d089ba4969314534caeaa7da66cb7f9dc98fb2;hp=aa0b9dc85b8b0d0eb7278ea74e97126648dc4038;hpb=94bcfced41343f2441d4470f39cb6471873461e4;p=gnulib.git diff --git a/lib/xgethostname.c b/lib/xgethostname.c index aa0b9dc85..4db3bbd16 100644 --- a/lib/xgethostname.c +++ b/lib/xgethostname.c @@ -1,5 +1,5 @@ /* xgethostname.c -- return current hostname with unlimited length - Copyright (C) 1992, 1996, 2000 Free Software Foundation, Inc. + Copyright (C) 1992, 1996, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,6 +29,7 @@ extern int errno; #endif #include "error.h" +#include "xalloc.h" #ifndef ENAMETOOLONG # define ENAMETOOLONG 9999 @@ -39,8 +40,6 @@ extern int errno; #endif int gethostname (); -char *xmalloc (); -char *xrealloc (); #ifndef INITIAL_HOSTNAME_LENGTH # define INITIAL_HOSTNAME_LENGTH 34