summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-10-04 00:17:23 +0100
committerVincent Sanders <vince@kyllikki.org>2019-10-04 00:17:23 +0100
commit28a80ecdf8588afe5ee521acf3ba48d81aae7373 (patch)
tree1fc22f3b5a413661049ccab7ffecb0dc946f49b7
parentae5a9650cd01eb096e3c896a0cc467d47269f45d (diff)
downloadlibnsutils-master.tar.gz
libnsutils-master.tar.bz2
add serenity OS for pread and pwrite emulationHEADmaster
-rw-r--r--src/unistd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd.c b/src/unistd.c
index 8791a44..bdedad7 100644
--- a/src/unistd.c
+++ b/src/unistd.c
@@ -21,7 +21,7 @@
/* exported interface documented in nsutils/unistd.h */
ssize_t nsu_pwrite(int fd, const void *buf, size_t count, off_t offset)
{
-#if (defined(__riscos) || defined(__amiga) || defined(_WIN32))
+#if (defined(__riscos) || defined(__amiga) || defined(_WIN32) || defined(__serenity__))
off_t sk;
sk = lseek(fd, offset, SEEK_SET);
@@ -53,7 +53,7 @@ ssize_t nsu_pwrite(int fd, const void *buf, size_t count, off_t offset)
/* exported interface documented in nsutils/unistd.h */
ssize_t nsu_pread(int fd, void *buf, size_t count, off_t offset)
{
-#if (defined(__riscos) || defined(_WIN32) || (defined(__amiga) && !defined(__amigaos4__)))
+#if (defined(__riscos) || defined(_WIN32) || defined(__serenity__) || (defined(__amiga) && !defined(__amigaos4__)))
off_t sk;
sk = lseek(fd, offset, SEEK_SET);