X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetlogin_r.c;h=39b6f275c81f9730d52fe5f781dbe28a69d9b3dc;hb=ec60d8959e16a743f09704c397931f2621f511ae;hp=371164a51d72fdda9891d819ba98f81891ef7ca6;hpb=15a8db51a45e0e0fb7777c12ce983dcb29da245a;p=gnulib.git diff --git a/lib/getlogin_r.c b/lib/getlogin_r.c index 371164a51..39b6f275c 100644 --- a/lib/getlogin_r.c +++ b/lib/getlogin_r.c @@ -1,6 +1,6 @@ /* Provide a working getlogin_r for systems which lack it. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007 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 @@ -18,21 +18,19 @@ /* written by Paul Eggert and Derek Price */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include -#include "getlogin_r.h" +/* Specification. */ +#include #include #include -#include #if !HAVE_DECL_GETLOGIN char *getlogin (void); #endif -/* See getlogin_r.h for documentation. */ +/* See unistd.in.h for documentation. */ int getlogin_r (char *name, size_t size) {