X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgetlogin_r.h;h=3ff3cafa6976c161fadd9a098c5b9919d8fb2798;hb=7b06e21eb5e8f585b20346271cbf241bad612f64;hp=d6f31beb2e280d9b0c6e84847ecb3d3beff81bd3;hpb=118ba24d049832db7affcd30bed4209cb37b2b30;p=gnulib.git diff --git a/lib/getlogin_r.h b/lib/getlogin_r.h index d6f31beb2..3ff3cafa6 100644 --- a/lib/getlogin_r.h +++ b/lib/getlogin_r.h @@ -18,20 +18,21 @@ /* Written by Paul Eggert and Derek Price. */ +#include + #if HAVE_UNISTD_H # include #endif -#if !HAVE_DECL_GETLOGIN_R /* Copies the user's login name to NAME. The array pointed to by NAME has room for SIZE bytes. Returns 0 if successful. Upon error, an error number is returned, or -1 in the case that the login name cannot be found but no specific error is - provided by getlogin (getlogin returned NULL and did not set errno - this - case is hopefully rare but is left open by the POSIX spec). + provided (this case is hopefully rare but is left open by the POSIX spec). - See . + See . */ +#if !HAVE_DECL_GETLOGIN_R int getlogin_r (char *name, size_t size); #endif