X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgethostname.c;h=acff351d8717f4e0f59bdd41f1bab217e237832e;hb=e8e63d1b31bca6c82713cba490b21a861abb24b5;hp=fec9fe3ed6a5b9f946082b1b7cdeead2ff4dcaf2;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/gethostname.c b/lib/gethostname.c index fec9fe3ed..acff351d8 100644 --- a/lib/gethostname.c +++ b/lib/gethostname.c @@ -1,6 +1,6 @@ /* gethostname emulation for SysV and POSIX.1. - Copyright (C) 1992, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1992, 2003, 2006, 2008 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 @@ -19,10 +19,15 @@ #include +/* Specification. */ +#include + #ifdef HAVE_UNAME # include #endif +#include + /* Put up to LEN chars of the host name into NAME. Null terminate it if the name is shorter than LEN. Return 0 if ok, -1 if error. */