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/getut.c')
-rw-r--r--newlib/libc/unix/getut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/unix/getut.c b/newlib/libc/unix/getut.c
index d8e3e2fec..1e2b75596 100644
--- a/newlib/libc/unix/getut.c
+++ b/newlib/libc/unix/getut.c
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <utmp.h>
@@ -29,8 +31,6 @@ endutent ()
void
utmpname (_CONST char *file)
{
- extern char *strdup (char *);
-
utmp_file = strdup (file);
}