From 64b8d39133a0c72de6e87f9436f07e089591a826 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 23 Mar 2006 11:17:41 +0000 Subject: Mark some functions as BSD only --- libc/sysdeps/linux/common/chroot.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/sysdeps/linux/common/chroot.c') diff --git a/libc/sysdeps/linux/common/chroot.c b/libc/sysdeps/linux/common/chroot.c index fcf2adac2..527310a15 100644 --- a/libc/sysdeps/linux/common/chroot.c +++ b/libc/sysdeps/linux/common/chroot.c @@ -12,6 +12,7 @@ #include #include +#if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_XOPEN2K) #define __NR___syscall_chroot __NR_chroot static inline _syscall1(int, __syscall_chroot, const char *, path); @@ -19,3 +20,4 @@ int chroot(const char *path) { return __syscall_chroot(path); } +#endif -- cgit v1.2.3