summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/chdir.c')
-rw-r--r--libc/sysdeps/linux/common/chdir.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/chdir.c b/libc/sysdeps/linux/common/chdir.c
index 230f86eb9..7afccf20c 100644
--- a/libc/sysdeps/linux/common/chdir.c
+++ b/libc/sysdeps/linux/common/chdir.c
@@ -2,20 +2,22 @@
/*
* chdir() for uClibc
*
- * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include "syscalls.h"
#include <string.h>
+#include <unistd.h>
#include <sys/param.h>
+libc_hidden_proto(chdir)
+
#define __NR___syscall_chdir __NR_chdir
static inline _syscall1(int, __syscall_chdir, const char *, path);
int chdir(const char *path)
{
return __syscall_chdir(path);
}
-libc_hidden_proto(chdir)
libc_hidden_def(chdir)