Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/unix/getlogin.c')
-rw-r--r--newlib/libc/unix/getlogin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/unix/getlogin.c b/newlib/libc/unix/getlogin.c
index ea4ca2983..da4f47a95 100644
--- a/newlib/libc/unix/getlogin.c
+++ b/newlib/libc/unix/getlogin.c
@@ -1,3 +1,5 @@
+#ifndef _NO_GETLOGIN
+
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
@@ -40,3 +42,4 @@ getlogin ()
close (utmp_fd);
return 0;
}
+#endif /* !_NO_GETLOGIN */