X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxgethostname.c;h=1f4d728a038210f0805b0a0b02891f24dc0b9c9d;hb=b3b353659ac863c94e9705047710a99fa58fe0b1;hp=c0939945bb635520b17e17faed19b0b05535ca03;hpb=fa9635f22ac175bace582885ca780d3eb511b578;p=gnulib.git diff --git a/lib/xgethostname.c b/lib/xgethostname.c index c0939945b..1f4d728a0 100644 --- a/lib/xgethostname.c +++ b/lib/xgethostname.c @@ -21,6 +21,9 @@ # include #endif +/* Specification. */ +#include "xgethostname.h" + #include #include @@ -30,16 +33,13 @@ extern int errno; #endif #include "error.h" +#include "exit.h" #include "xalloc.h" #ifndef ENAMETOOLONG # define ENAMETOOLONG 9999 #endif -#ifndef EXIT_FAILURE -# define EXIT_FAILURE 1 -#endif - int gethostname (); #ifndef INITIAL_HOSTNAME_LENGTH