42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From 340bab208735d6c725045f043fcd1757d15dd6cc Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Thu, 9 Dec 2021 18:09:59 +0000
|
|
Subject: [PATCH] windows: Use replacement pread and pwrite functions
|
|
|
|
Fixes: commit ce0db9d7736dd28dd0f10951ce65853e50b35e41
|
|
(cherry picked from commit aaca7cfaede90c681265f8a413e250accbf1d5f6)
|
|
---
|
|
common/utils/Makefile.am | 1 +
|
|
common/utils/full-rw.c | 3 +++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
diff --git a/common/utils/Makefile.am b/common/utils/Makefile.am
|
|
index 14e9dfc4..c33811fc 100644
|
|
--- a/common/utils/Makefile.am
|
|
+++ b/common/utils/Makefile.am
|
|
@@ -52,6 +52,7 @@ libutils_la_SOURCES = \
|
|
$(NULL)
|
|
libutils_la_CPPFLAGS = \
|
|
-I$(top_srcdir)/include \
|
|
+ -I$(top_srcdir)/common/replacements \
|
|
$(NULL)
|
|
libutils_la_CFLAGS = \
|
|
$(WARNINGS_CFLAGS) \
|
|
diff --git a/common/utils/full-rw.c b/common/utils/full-rw.c
|
|
index 55b32cdd..4b4d1b1a 100644
|
|
--- a/common/utils/full-rw.c
|
|
+++ b/common/utils/full-rw.c
|
|
@@ -41,6 +41,9 @@
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
|
|
+#include "pread.h"
|
|
+#include "pwrite.h"
|
|
+
|
|
ssize_t
|
|
full_pread (int fd, void *buf, size_t count, off_t offset)
|
|
{
|
|
--
|
|
2.31.1
|
|
|