getopt.h is a GNU-getopt-specific header. always expose GNU functions.
[musl] / src / unistd / getlogin.c
1 #include <unistd.h>
2 #include <stdlib.h>
3
4 char *getlogin(void)
5 {
6         return getenv("LOGNAME");
7 }