summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/getlogin.c3
-rw-r--r--libc/unistd/sysconf.c3
2 files changed, 4 insertions, 2 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)
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index 6f362819c..0dde75102 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -33,6 +33,8 @@
#include <regex.h>
#endif
+libc_hidden_proto(sysconf)
+
libc_hidden_proto(getpagesize)
libc_hidden_proto(getdtablesize)
@@ -883,5 +885,4 @@ long int sysconf(int name)
#endif
}
}
-libc_hidden_proto(sysconf)
libc_hidden_def(sysconf)