summaryrefslogtreecommitdiff
path: root/libc/unistd/getlogin.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 19:45:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 19:45:02 +0000
commit6f7dc709ed7e403af224b0fbb91e9619629eb2ec (patch)
tree349296ed6e3d73f390409bf96fa4269d1ac20ec7 /libc/unistd/getlogin.c
parent2d997660372123ab6ac1ee519b22fe015eaa787b (diff)
make DODEBUG=y happy, update sysdeps/common/* copyright
Diffstat (limited to 'libc/unistd/getlogin.c')
-rw-r--r--libc/unistd/getlogin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/unistd/getlogin.c b/libc/unistd/getlogin.c
index f2ee1d355..778b8f1e6 100644
--- a/libc/unistd/getlogin.c
+++ b/libc/unistd/getlogin.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
libc_hidden_proto(strcpy)
libc_hidden_proto(strncpy)
@@ -33,11 +34,11 @@ libc_hidden_proto(getenv)
* the user specify whatever they want via the LOGNAME environment
* variable, or we return NULL if getenv() fails to find anything */
+libc_hidden_proto(getlogin)
char * getlogin(void)
{
return (getenv("LOGNAME"));
}
-libc_hidden_proto(getlogin)
libc_hidden_def(getlogin)
int getlogin_r(char *name, size_t len)