Fix warning in comment.
[gnulib.git] / lib / getlogin_r.h
index 90df726..3ff3caf 100644 (file)
 
 /* Written by Paul Eggert and Derek Price.  */
 
+#include <stddef.h>
+
 #if HAVE_UNISTD_H
 # include <unistd.h>
 #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 <http://www.opengroup.org/onlinepubs/009695399/functions/getlogin.html>.
+   See <http://www.opengroup.org/susv3xsh/getlogin.html>.
  */
-# include <stddef.h>
+#if !HAVE_DECL_GETLOGIN_R
 int getlogin_r (char *name, size_t size);
 #endif