v0-0001-Move-pg_int64-back-to-postgres_ext.h.patch

text/plain

Filename: v0-0001-Move-pg_int64-back-to-postgres_ext.h.patch
Type: text/plain
Part: 0
Message: Re: Cannot find a working 64-bit integer type on Illumos

Patch

Format: format-patch
Series: patch v0-0001
Subject: Move pg_int64 back to postgres_ext.h
File+
src/include/postgres_ext.h 3 0
src/interfaces/libpq/libpq-fe.h 0 3
From c4e0c2e406adfa15c4f0916f18616ca44b2419ef Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Wed, 3 Sep 2025 17:45:18 +0200
Subject: [PATCH v0] Move pg_int64 back to postgres_ext.h

Fix for commit 3c86223c998.  Details TODO ...
---
 src/include/postgres_ext.h      | 3 +++
 src/interfaces/libpq/libpq-fe.h | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h
index bf45c50dcf3..c8eb26a3c2e 100644
--- a/src/include/postgres_ext.h
+++ b/src/include/postgres_ext.h
@@ -42,6 +42,9 @@ typedef unsigned int Oid;
 /* the above needs <stdlib.h> */
 
 
+/* deprecated name for int64_t */
+typedef int64_t pg_int64;
+
 /*
  * Identifiers of error message fields.  Kept here to keep common
  * between frontend and backend, and also to export them to libpq
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index af8004f952a..0852584edae 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -234,9 +234,6 @@ typedef struct pgNotify
 	struct pgNotify *next;		/* list link */
 } PGnotify;
 
-/* deprecated name for int64_t */
-typedef int64_t pg_int64;
-
 /* pg_usec_time_t is like time_t, but with microsecond resolution */
 typedef int64_t pg_usec_time_t;
 
-- 
2.51.0