X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetlogin_r.h;h=3b304acda11a3895b5671fa9ceca02ed63249453;hb=331f6ee713f7038d6d1a1c0451016c8aaab6a079;hp=90df726aaa355ff7dd1f802834ef3d1b1595c809;hpb=2eb4c7c4b75c78250ba27a844e3d5f1958c113b6;p=gnulib.git diff --git a/lib/getlogin_r.h b/lib/getlogin_r.h index 90df726aa..3b304acda 100644 --- a/lib/getlogin_r.h +++ b/lib/getlogin_r.h @@ -18,21 +18,18 @@ /* Written by Paul Eggert and Derek Price. */ -#if HAVE_UNISTD_H -# include -#endif +#include +#include -#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 . */ -# include +#if !HAVE_DECL_GETLOGIN_R int getlogin_r (char *name, size_t size); #endif