summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-23 19:09:03 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-23 19:09:03 +0000
commit50566667587e92dcf900e2d53204d972b5650a38 (patch)
treea6f76761af913def513f7cd326f38bce6cc95eca /libc/sysdeps/linux/common
parentdf052fadc5d95cc5312a3aff62b32993039056df (diff)
Several h8300 updates from Yoshinori Sato <qzb04471@nifty.ne.jp>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index a8aed2ba1..389ce9e1d 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1373,14 +1373,13 @@ int sigsuspend (const sigset_t *mask)
#endif
//#define __NR_pread 180
-#ifdef __NR_pread
#ifdef L___libc_pread
+#ifdef __NR_pread
#define _XOPEN_SOURCE 500
#include <unistd.h>
#define __NR___libc_pread __NR_pread
_syscall4(ssize_t, __libc_pread, int, fd, void *, buf, size_t, count, __off_t, offset);
weak_alias (__libc_pread, pread)
-#endif
#else
ssize_t pread(int fd, void *buf, size_t count, off_t offset)
{
@@ -1388,16 +1387,16 @@ ssize_t pread(int fd, void *buf, size_t count, off_t offset)
return -1;
}
#endif
+#endif
//#define __NR_pwrite 181
-#ifdef __NR_pwrite
#ifdef L___libc_pwrite
+#ifdef __NR_pwrite
#define _XOPEN_SOURCE 500
#include <unistd.h>
#define __NR___libc_pwrite __NR_pwrite
_syscall4(ssize_t, __libc_pwrite, int, fd, const void *, buf, size_t, count, __off_t, offset);
weak_alias (__libc_pwrite, pwrite)
-#endif
#else
ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset)
{
@@ -1405,6 +1404,7 @@ ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset)
return -1;
}
#endif
+#endif
//#define __NR_chown 182
#ifdef L_chown