fix.patch

application/octet-stream

Filename: fix.patch
Type: application/octet-stream
Part: 0
Message: Re: BUG #19368: f54af9f does not create the correct macro for autotools build
diff --git a/meson.build b/meson.build
index ec08cd49056..f95b99f7063 100644
--- a/meson.build
+++ b/meson.build
@@ -1030,7 +1030,7 @@ if liburing.found()
 
   if cc.has_function('io_uring_queue_init_mem',
       dependencies: liburing, args: test_c_args)
-    cdata.set('HAVE_LIBURING_QUEUE_INIT_MEM', 1)
+    cdata.set('HAVE_IO_URING_QUEUE_INIT_MEM', 1)
   endif
 
 endif
diff --git a/src/backend/storage/aio/method_io_uring.c b/src/backend/storage/aio/method_io_uring.c
index 00cb017ca3c..6916ae69832 100644
--- a/src/backend/storage/aio/method_io_uring.c
+++ b/src/backend/storage/aio/method_io_uring.c
@@ -156,7 +156,7 @@ pgaio_uring_check_capabilities(void)
 	 * also has a secondary benefit: We can determine precisely how much
 	 * memory we need for each io_uring instance.
 	 */
-#if defined(HAVE_LIBURING_QUEUE_INIT_MEM) && defined(IORING_SETUP_NO_MMAP)
+#if defined(HAVE_IO_URING_QUEUE_INIT_MEM) && defined(IORING_SETUP_NO_MMAP)
 	{
 		struct io_uring test_ring;
 		size_t		ring_size;
@@ -341,7 +341,7 @@ pgaio_uring_shmem_init(bool first_time)
 		 * with its data in shared memory. Otherwise fall back io_uring
 		 * creating a memory mapping for each ring.
 		 */
-#if defined(HAVE_LIBURING_QUEUE_INIT_MEM) && defined(IORING_SETUP_NO_MMAP)
+#if defined(HAVE_IO_URING_QUEUE_INIT_MEM) && defined(IORING_SETUP_NO_MMAP)
 		if (pgaio_uring_caps.mem_init_size > 0)
 		{
 			struct io_uring_params p = {0};