Gitweb links:
...log
http://git.netsurf-browser.org/libnsutils.git/shortlog/22cadbba395422e329...
...commit
http://git.netsurf-browser.org/libnsutils.git/commit/22cadbba395422e32988...
...tree
http://git.netsurf-browser.org/libnsutils.git/tree/22cadbba395422e32988e3...
The branch, master has been updated
via 22cadbba395422e32988e3d16e1a12ab9a85648d (commit)
from 8aa0a0c18f3c9b27b740aefd0ec4c3e2f34f7fd2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libnsutils.git/commit/?id=22cadbba395422e3...
commit 22cadbba395422e32988e3d16e1a12ab9a85648d
Author: Vincent Sanders <vince(a)kyllikki.org>
Commit: Vincent Sanders <vince(a)kyllikki.org>
fix up unistd operations for amigaos 3 and win32 targets
diff --git a/Makefile b/Makefile
index 833cc1d..73dba09 100644
--- a/Makefile
+++ b/Makefile
@@ -52,5 +52,6 @@ I := /$(INCLUDEDIR)/nsutils
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/errors.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/base64.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/time.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/unistd.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)
diff --git a/src/unistd.c b/src/unistd.c
index e8c5a0a..8791a44 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)
+#if (defined(__riscos) || defined(__amiga) || defined(_WIN32))
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)
+#if (defined(__riscos) || defined(_WIN32) || (defined(__amiga) &&
!defined(__amigaos4__)))
off_t sk;
sk = lseek(fd, offset, SEEK_SET);
-----------------------------------------------------------------------
Summary of changes:
Makefile | 1 +
src/unistd.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 833cc1d..73dba09 100644
--- a/Makefile
+++ b/Makefile
@@ -52,5 +52,6 @@ I := /$(INCLUDEDIR)/nsutils
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/errors.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/base64.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/time.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/nsutils/unistd.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in
INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)
diff --git a/src/unistd.c b/src/unistd.c
index e8c5a0a..8791a44 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)
+#if (defined(__riscos) || defined(__amiga) || defined(_WIN32))
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)
+#if (defined(__riscos) || defined(_WIN32) || (defined(__amiga) &&
!defined(__amigaos4__)))
off_t sk;
sk = lseek(fd, offset, SEEK_SET);
--
NetSurf generalised utility library