public inbox for [email protected]
help / color / mirror / Atom feedFrom: Alvaro Herrera <[email protected]>
Subject: [PATCH] No need to avoid including pg_iovec.h
Date: Sun, 30 Oct 2022 15:22:24 +0100
---
src/include/common/file_utils.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/include/common/file_utils.h b/src/include/common/file_utils.h
index 2c5dbcb0b1..20fe5806fb 100644
--- a/src/include/common/file_utils.h
+++ b/src/include/common/file_utils.h
@@ -15,6 +15,8 @@
#include <dirent.h>
+#include "port/pg_iovec.h"
+
typedef enum PGFileType
{
PGFILETYPE_ERROR,
@@ -24,7 +26,6 @@ typedef enum PGFileType
PGFILETYPE_LNK
} PGFileType;
-struct iovec; /* avoid including port/pg_iovec.h here */
#ifdef FRONTEND
extern int fsync_fname(const char *fname, bool isdir);
@@ -40,7 +41,7 @@ extern PGFileType get_dirent_type(const char *path,
int elevel);
extern ssize_t pg_pwritev_with_retry(int fd,
- const struct iovec *iov,
+ const iovec *iov,
int iovcnt,
off_t offset);
--
2.30.2
--q6wkdyf2bvwky6i7--
view thread (9+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH] No need to avoid including pg_iovec.h
In-Reply-To: <no-message-id-1858509@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox